aboutsummaryrefslogtreecommitdiffstats
path: root/package/libamsel/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openwrt.org>2005-07-15 15:15:02 +0000
committerWaldemar Brodkorb <wbx@openwrt.org>2005-07-15 15:15:02 +0000
commit50e581bd69a1dd8c93a698d05261d9c9483388ab (patch)
treeae186e63fd0518cc9fb055ab42264a2bd640080b /package/libamsel/Makefile
parentf95e2e243df28c50f00b9654e19b7b1778599084 (diff)
downloadupstream-50e581bd69a1dd8c93a698d05261d9c9483388ab.tar.gz
upstream-50e581bd69a1dd8c93a698d05261d9c9483388ab.tar.bz2
upstream-50e581bd69a1dd8c93a698d05261d9c9483388ab.zip
add libamsel and amwall, an iptables frontend, like OpenBSD's pf, thx Eymen Alyaz
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1438 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/libamsel/Makefile')
-rw-r--r--package/libamsel/Makefile57
1 files changed, 57 insertions, 0 deletions
diff --git a/package/libamsel/Makefile b/package/libamsel/Makefile
new file mode 100644
index 0000000000..795787fdfb
--- /dev/null
+++ b/package/libamsel/Makefile
@@ -0,0 +1,57 @@
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libamsel
+PKG_VERSION:=20040621-cvs
+PKG_RELEASE:=1
+PKG_MD5SUM:=2077e620047404881a65d39c53c9917e
+
+PKG_SOURCE_URL:=ftp://ftp.amselinux.net/source/
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
+PKG_CAT:=bzcat
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
+
+include $(TOPDIR)/package/rules.mk
+
+$(eval $(call PKG_template,LIBAMSEL,libamsel,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
+
+$(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.prepared
+ rm -rf $(PKG_INSTALL_DIR)
+ mkdir -p $(PKG_INSTALL_DIR)
+ $(MAKE) -C $(PKG_BUILD_DIR) \
+ $(TARGET_CONFIGURE_OPTS) \
+ LDIR=$(PKG_BUILD_DIR) \
+ PREFIX="$(PKG_INSTALL_DIR)/usr" \
+ all install
+ touch $@
+
+$(IPKG_LIBAMSEL):
+ install -d -m0755 $(IDIR_LIBAMSEL)/usr/lib
+ cp -fpR $(PKG_INSTALL_DIR)/usr/lib/* $(IDIR_LIBAMSEL)/usr/lib
+ $(RSTRIP) $(IDIR_LIBAMSEL)
+ $(IPKG_BUILD) $(IDIR_LIBAMSEL) $(PACKAGE_DIR)
+
+
+$(STAGING_DIR)/usr/lib/libamsel.so: $(PKG_BUILD_DIR)/.built
+ mkdir -p $(STAGING_DIR)/usr/include
+ cp -fpR $(PKG_INSTALL_DIR)/usr/include/amsel/compat.h $(STAGING_DIR)/usr/include/
+ mkdir -p $(STAGING_DIR)/usr/include/compat
+ cp -fpR $(PKG_INSTALL_DIR)/usr/include/amsel/compat/queue.h $(STAGING_DIR)/usr/include/compat
+ mkdir -p $(STAGING_DIR)/usr/lib/
+ cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libamsel.so $(STAGING_DIR)/usr/lib/
+ touch $(STAGING_DIR)/usr/lib/libamsel.so
+
+install-dev: $(STAGING_DIR)/usr/lib/libamsel.so
+
+uninstall-dev:
+ rm -rf \
+ $(STAGING_DIR)/usr/include/compat.h \
+ $(STAGING_DIR)/usr/include/compat \
+ $(STAGING_DIR)/usr/lib/libamsel.so \
+
+compile: install-dev
+clean: uninstall-dev
+