From 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 Mon Sep 17 00:00:00 2001 From: wbx Date: Sun, 17 May 2009 14:41:34 +0200 Subject: Initial import --- package/shorewall-shell/Config.in | 8 +++++ package/shorewall-shell/Makefile | 35 ++++++++++++++++++++++ package/shorewall-shell/files/downstrip | 7 +++++ .../shorewall-shell/ipkg/shorewall-shell.control | 5 ++++ 4 files changed, 55 insertions(+) create mode 100644 package/shorewall-shell/Config.in create mode 100644 package/shorewall-shell/Makefile create mode 100644 package/shorewall-shell/files/downstrip create mode 100644 package/shorewall-shell/ipkg/shorewall-shell.control (limited to 'package/shorewall-shell') diff --git a/package/shorewall-shell/Config.in b/package/shorewall-shell/Config.in new file mode 100644 index 000000000..76270351b --- /dev/null +++ b/package/shorewall-shell/Config.in @@ -0,0 +1,8 @@ +config ADK_PACKAGE_SHOREWALL_SHELL + prompt "shorewall-shell................. shorewall shell compiler" + tristate + depends ADK_PACKAGE_SHOREWALL + default y + help + http://www.shorewall.net/ + diff --git a/package/shorewall-shell/Makefile b/package/shorewall-shell/Makefile new file mode 100644 index 000000000..233d259a1 --- /dev/null +++ b/package/shorewall-shell/Makefile @@ -0,0 +1,35 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= shorewall-shell +PKG_VERSION:= 4.0.14.1 +PKG_RELEASE:= 1 +PKG_MD5SUM:= ab61c2f3db82382351f432f783980fa7 +MASTER_SITES:= http://www1.shorewall.net/pub/shorewall/4.0/shorewall-4.0.14/ +DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2 + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,SHOREWALL_SHELL,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${ARCH})) + +do-install: + PREFIX="${WRKINST}" ${WRKBUILD}/install.sh -n + +ifeq ($(ADK_PACKAGE_SHOREWALL_STRIPSHARED),y) + ${BASH} ./files/downstrip ${WRKINST}/usr/share/${PKG_NAME} +endif + +post-install: + ${INSTALL_DIR} ${IDIR_SHOREWALL_SHELL}/usr/share/${PKG_NAME} + + ${INSTALL_DATA} ${WRKINST}/usr/share/${PKG_NAME}/version ${IDIR_SHOREWALL_SHELL}/usr/share/${PKG_NAME}/ + ${INSTALL_DATA} ${WRKINST}/usr/share/${PKG_NAME}/lib.* ${IDIR_SHOREWALL_SHELL}/usr/share/${PKG_NAME}/ + ${INSTALL_DATA} ${WRKINST}/usr/share/${PKG_NAME}/prog.* ${IDIR_SHOREWALL_SHELL}/usr/share/${PKG_NAME}/ + + ${INSTALL_BIN} ${WRKINST}/usr/share/${PKG_NAME}/compiler ${IDIR_SHOREWALL_SHELL}/usr/share/${PKG_NAME}/ + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/shorewall-shell/files/downstrip b/package/shorewall-shell/files/downstrip new file mode 100644 index 000000000..040eded62 --- /dev/null +++ b/package/shorewall-shell/files/downstrip @@ -0,0 +1,7 @@ +#!/bin/sh + +cd $1 +for i in $( ls -1 $1 |grep -v ".template"); do + sed -e '/^$/d' -e '/^#$/d' -e '/^#[^!]/d' -e '/^[ *]$/d' -e 's/\t/ /g' -i $i +done + diff --git a/package/shorewall-shell/ipkg/shorewall-shell.control b/package/shorewall-shell/ipkg/shorewall-shell.control new file mode 100644 index 000000000..7745b88fb --- /dev/null +++ b/package/shorewall-shell/ipkg/shorewall-shell.control @@ -0,0 +1,5 @@ +Package: shorewall-shell +Priority: optional +Section: net +Depends: shorewall-common +Description: shell compiler for shorewall -- cgit v1.2.3