ksymoops: remove package, it has been obsolete and useless for a long time
[openwrt.org/packages.git] / net / Makefile






































































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