summaryrefslogtreecommitdiff
path: root/package/parprouted/Makefile
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-07-24 23:44:19 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-07-24 23:44:19 +0000
commit5b66d8eb1a6570798c2c3735e59a3f3e0b19c52b (patch)
tree760ca4b461269ef8679841cc2f3e4e0877648e6d /package/parprouted/Makefile
parent102ad2157b31642e029c8c176de1cc5b22c96599 (diff)
add parprouted
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1542 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/parprouted/Makefile')
-rw-r--r--package/parprouted/Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/package/parprouted/Makefile b/package/parprouted/Makefile
new file mode 100644
index 0000000000..fc37e100fa
--- /dev/null
+++ b/package/parprouted/Makefile
@@ -0,0 +1,42 @@
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=parprouted
+PKG_VERSION:=0.63
+PKG_RELEASE:=1
+PKG_MD5SUM:=12753098a22e82997d1941d6d2284750
+
+PKG_SOURCE_URL:=http://www.hazard.maks.net/parprouted/
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_CAT:=zcat
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+
+include $(TOPDIR)/package/rules.mk
+
+$(eval $(call PKG_template,PARPROUTED,parprouted,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
+
+$(PKG_BUILD_DIR)/.configured:
+ touch $@
+
+$(PKG_BUILD_DIR)/.built:
+ $(MAKE) -C $(PKG_BUILD_DIR) \
+ CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \
+ all
+ touch $@
+
+$(IPKG_PARPROUTED):
+ install -d -m0755 $(IDIR_PARPROUTED)/etc/default
+ install -m0755 ./files/parprouted.default $(IDIR_PARPROUTED)/etc/default/parprouted
+ install -d -m0755 $(IDIR_PARPROUTED)/etc/init.d
+ install -m0755 ./files/parprouted.init $(IDIR_PARPROUTED)/etc/init.d/parprouted
+ ln -sf parprouted $(IDIR_PARPROUTED)/etc/init.d/S50parpouted
+ install -d -m0755 $(IDIR_PARPROUTED)/usr/sbin
+ install -m0755 $(PKG_BUILD_DIR)/parprouted $(IDIR_PARPROUTED)/usr/sbin/
+ $(RSTRIP) $(IDIR_PARPROUTED)
+ $(IPKG_BUILD) $(IDIR_PARPROUTED) $(PACKAGE_DIR)
+
+mostlyclean:
+ -$(MAKE) -C $(PKG_BUILD_DIR) clean
+ rm -f $(PKG_BUILD_DIR)/.built