treewide: remove AUTORELEASE
[feed/routing.git] / minimalist-pcproxy / Makefile
1 #
2 # Copyright (C) 2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=minimalist-pcproxy
10 PKG_RELEASE:=7
11
12 PKG_SOURCE_PROTO:=git
13 PKG_SOURCE_URL:=https://github.com/fingon/minimalist-pcproxy.git
14 PKG_SOURCE_DATE:=2014-12-12
15 PKG_SOURCE_VERSION:=2d6d1b0b0a3b79a9b4a9b0a7606a84600a967bcb
16 PKG_MIRROR_HASH:=0065015e8063a20ee79f1ade4ac2e173a5ff6cffe762521271ec7b849bb956a7
17
18 PKG_MAINTAINER:=Markus Stenberg <fingon@iki.fi>
19 PKG_LICENSE:=BSD-3-Clause
20 PKG_LICENSE_FILES:=LICENSE
21
22 include $(INCLUDE_DIR)/package.mk
23 include $(INCLUDE_DIR)/cmake.mk
24
25 define Package/minimalist-pcproxy
26 SECTION:=net
27 CATEGORY:=Network
28 TITLE:=Lightweight PCP proxy
29 URL:=https://github.com/fingon/minimalist-pcproxy
30 DEPENDS:=+libubox @IPV6
31 endef
32
33 define Package/minimalist-pcproxy/description
34 This package contains a daemon which can be used to forward
35 PCP (Port Control Protocol - RFC6887) requests requests to PCP remote servers.
36
37 In and of itself, it is not very useful, but combined with hnetd+miniupnpd
38 it allows for control of NAT forwarding and firewall pinholes from multiple
39 hops away.
40 endef
41
42 define Package/minimalist-pcproxy/install
43 $(INSTALL_DIR) $(1)/usr/sbin/
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/minimalist-pcproxy $(1)/usr/sbin/
45 $(INSTALL_DIR) $(1)/etc/uci-defaults
46 $(INSTALL_BIN) ./files/minimalist-pcproxy.defaults $(1)/etc/uci-defaults/x-minimalist-pcproxy.defaults
47 endef
48
49 define Package/minimalist-pcproxy/postinst
50 #!/bin/sh
51 [ -n "$${IPKG_INSTROOT}" ] || {
52 (. /etc/uci-defaults/x-minimalist-pcproxy.defaults) && rm -f /etc/uci-defaults/x-minimalist-pcproxy.defaults
53 }
54 exit 0
55 endef
56
57 $(eval $(call BuildPackage,minimalist-pcproxy))