source: packages/net/miniupnpd/Makefile @ 7802

Last change on this file since 7802 was 7802, checked in by olli, 9 years ago

Update miniupnpd: 1.0-RC5 > 1.0-RC6

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1#
2# Copyright (C) 2006 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7# $Id$
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=miniupnpd
12PKG_VERSION:=1.0-RC6
13PKG_RELEASE:=2
14PKG_MD5SUM:=6cb5f0710050b5be0d976383985b012b
15
16PKG_SOURCE_URL:=http://miniupnp.free.fr/files
17PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18PKG_CAT:=zcat
19
20PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23include $(INCLUDE_DIR)/package.mk
24
25define Package/miniupnpd
26  SECTION:=net
27  CATEGORY:=Network
28  DEPENDS:=+iptables
29  TITLE:=Lightweight UPnP daemon
30  URL:=http://miniupnp.tuxfamily.org/
31endef
32
33define Build/Compile
34        ln -sf $(PKG_BUILD_DIR)/config.h.openwrt $(PKG_BUILD_DIR)/config.h
35        $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.openwrt \
36                $(TARGET_CONFIGURE_OPTS) \
37                STAGING_DIR="$(STAGING_DIR)" \
38                CFLAGS="$(TARGET_CFLAGS) -I $(STAGING_DIR)/usr/include" \
39                LIBS="$(STAGING_DIR)/usr/lib/libiptc.a"
40endef
41
42define Package/miniupnpd/install
43        $(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d $(1)/etc/config $(1)/etc/hotplug.d/iface
44        $(INSTALL_BIN) $(PKG_BUILD_DIR)/miniupnpd $(1)/usr/bin/
45        $(INSTALL_BIN) $(PKG_BUILD_DIR)/linux/*.sh $(1)/usr/bin/
46        $(INSTALL_BIN) ./files/miniupnpd.init $(1)/etc/init.d/miniupnpd
47        $(INSTALL_DATA) ./files/upnpd.config $(1)/etc/config/upnpd
48        $(INSTALL_DATA) ./files/miniupnpd.hotplug $(1)/etc/hotplug.d/iface/20-miniupnpd
49endef
50
51$(eval $(call BuildPackage,miniupnpd))
Note: See TracBrowser for help on using the repository browser.