source: branches/packages_8.09/net/miniupnpd/Makefile @ 17852

Last change on this file since 17852 was 17852, checked in by nico, 7 years ago

[8.09] [packages] adjust copyright headers and pkg release numbers to x.2 for all packages updated since 8.09.1

  • 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.3 KB
Line 
1#
2# Copyright (C) 2006-2009 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.1
13PKG_RELEASE:=5.2
14PKG_MD5SUM:=a0f6651476721db9b554668c8c83b151
15
16PKG_SOURCE_URL:=http://miniupnp.free.fr/files
17PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
18
19include $(INCLUDE_DIR)/package.mk
20
21define Package/miniupnpd
22  SECTION:=net
23  CATEGORY:=Network
24  DEPENDS:=+iptables
25  TITLE:=Lightweight UPnP daemon
26  URL:=http://miniupnp.tuxfamily.org/
27endef
28
29define Build/Compile
30        ln -sf $(PKG_BUILD_DIR)/config.h.openwrt $(PKG_BUILD_DIR)/config.h
31        $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.openwrt \
32                $(TARGET_CONFIGURE_OPTS) \
33                STAGING_DIR="$(STAGING_DIR)" \
34                CFLAGS="$(TARGET_CFLAGS) -I $(STAGING_DIR)/usr/include" \
35                LIBS="$(STAGING_DIR)/usr/lib/libiptc.a"
36endef
37
38define Package/miniupnpd/install
39        $(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d $(1)/etc/config $(1)/etc/hotplug.d/firewall
40        $(INSTALL_BIN) $(PKG_BUILD_DIR)/miniupnpd $(1)/usr/bin/miniupnpd
41        $(INSTALL_BIN) ./files/miniupnpd.init $(1)/etc/init.d/miniupnpd
42        $(INSTALL_DATA) ./files/upnpd.config $(1)/etc/config/upnpd
43        $(INSTALL_DATA) ./files/miniupnpd.hotplug $(1)/etc/hotplug.d/firewall/50-miniupnpd
44endef
45
46$(eval $(call BuildPackage,miniupnpd))
Note: See TracBrowser for help on using the repository browser.