source: packages/net/linuxigd/Makefile @ 20813

Last change on this file since 20813 was 20813, checked in by florian, 6 years ago

[package] mark linuxigd as 2.6 only (#6973)

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
1#
2# Copyright (C) 2006 OpenWrt.org
3# Copyright (C) 2006 loswillios
4#
5# This is free software, licensed under the GNU General Public License v2.
6# See /LICENSE for more information.
7#
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=linuxigd
12PKG_VERSION:=1.0
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=@SF/linux-igd
17PKG_MD5SUM:=929f5c4878c91d534613b7c7070215d9
18
19PKG_BUILD_DEPENDS:=iptables libupnp
20
21include $(INCLUDE_DIR)/package.mk
22
23define Package/linuxigd
24  SECTION:=net
25  CATEGORY:=Network
26  TITLE:=UPnP daemon
27  DEPENDS:=+libiptc +libupnp +libpthread @LINUX_2_6
28  URL:=http://linux-igd.sourceforge.net/
29endef
30
31define Package/linuxigd/description
32        It implements the UPnP Internet Gateway Device specification (IGD)
33        and allows UPnP aware clients, such as MSN Messenger, Azureus or
34        Miranda to work properly from behind a NAT firewall.
35
36        Please edit /etc/upnpd.conf before using upnpd!
37endef
38
39define Build/Compile
40        $(MAKE) -C $(PKG_BUILD_DIR)  \
41                $(TARGET_CONFIGURE_OPTS) \
42                CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -DIPTABLES_143 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib" \
43                BINDIR="/usr/sbin" \
44                MANDIR="/usr/man" \
45                HAVE_LIBIPTC=1 \
46                LIBIPTC_PREFIX="$(STAGING_DIR)/usr" \
47                LIBUPNP_PREFIX="$(STAGING_DIR)/usr" \
48                all
49endef
50
51define Package/linuxigd/conffiles
52/etc/upnpd.conf
53endef
54
55define Package/linuxigd/install
56        $(INSTALL_DIR) $(1)/usr/sbin
57        $(INSTALL_BIN) $(PKG_BUILD_DIR)/upnpd $(1)/usr/sbin/
58        $(INSTALL_DIR) $(1)/etc/linuxigd
59        $(INSTALL_DATA) $(PKG_BUILD_DIR)/etc/*.gif $(1)/etc/linuxigd/
60        $(INSTALL_DATA) $(PKG_BUILD_DIR)/etc/*.xml $(1)/etc/linuxigd/
61        $(INSTALL_DIR) $(1)/etc
62        $(INSTALL_DATA) ./files/upnpd.conf $(1)/etc/
63        $(INSTALL_DIR) $(1)/etc/init.d
64        $(INSTALL_BIN) ./files/upnpd.init $(1)/etc/init.d/upnpd
65endef
66
67$(eval $(call BuildPackage,linuxigd))
Note: See TracBrowser for help on using the repository browser.