From ba3359722cbf8aa7b0ed39e1f81d1d74ec88fecd Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 30 May 2009 20:39:07 +0200 Subject: optimize ipkg package management - generate ipkg control file from PKG_* variables - automatically install init scripts from ./files/*.init set #PKG pkgname to set the binary package - rename FWINIT -> INIT - move postinst and conffiles meta data to ./files - update the packages to the latest upstream version - remove some unready or unused package (strongswan,..) more cleanups needed after allmodconfig --- package/portsentry/Makefile | 10 ++++++---- package/portsentry/files/portsentry.conffiles | 1 + package/portsentry/ipkg/portsentry.conffiles | 1 - package/portsentry/ipkg/portsentry.control | 4 ---- 4 files changed, 7 insertions(+), 9 deletions(-) create mode 100644 package/portsentry/files/portsentry.conffiles delete mode 100644 package/portsentry/ipkg/portsentry.conffiles delete mode 100644 package/portsentry/ipkg/portsentry.control (limited to 'package/portsentry') diff --git a/package/portsentry/Makefile b/package/portsentry/Makefile index 71707ba3c..459298b3f 100644 --- a/package/portsentry/Makefile +++ b/package/portsentry/Makefile @@ -9,21 +9,23 @@ PKG_NAME:= portsentry PKG_VERSION:= 1.2 PKG_RELEASE:= 1 PKG_MD5SUM:= 3ebd3618ba9abfea2525e236bd44cebd -MASTER_SITES:= ${MASTER_SITE_SOURCEFORGE:=sentrytools/} +PKG_DESCR:= Software for protection against port scans +PKG_SECTION:= net +PKG_URL:= http://sourceforge.net/projects/sentrytools +PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=sentrytools/} WRKDIST= ${WRKDIR}/${PKG_NAME}_beta include ${TOPDIR}/mk/package.mk -$(eval $(call PKG_template,PORTSENTRY,portsentry,${PKG_VERSION}-${PKG_RELEASE})) +$(eval $(call PKG_template,PORTSENTRY,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) BUILD_STYLE:= auto ALL_TARGET:= linux MAKE_FLAGS+= CC="${TARGET_CC}" CFLAGS="${TCFLAGS}" do-install: - ${INSTALL_DIR} ${IDIR_PORTSENTRY}/usr/bin \ - ${IDIR_PORTSENTRY}/etc + ${INSTALL_DIR} ${IDIR_PORTSENTRY}/usr/bin ${IDIR_PORTSENTRY}/etc ${INSTALL_DATA} ${WRKBUILD}/${PKG_NAME}.conf ${IDIR_PORTSENTRY}/etc/ ${INSTALL_BIN} ${WRKBUILD}/${PKG_NAME} ${IDIR_PORTSENTRY}/usr/bin/ diff --git a/package/portsentry/files/portsentry.conffiles b/package/portsentry/files/portsentry.conffiles new file mode 100644 index 000000000..9c0810ccb --- /dev/null +++ b/package/portsentry/files/portsentry.conffiles @@ -0,0 +1 @@ +/etc/portsentry.conf diff --git a/package/portsentry/ipkg/portsentry.conffiles b/package/portsentry/ipkg/portsentry.conffiles deleted file mode 100644 index 9c0810ccb..000000000 --- a/package/portsentry/ipkg/portsentry.conffiles +++ /dev/null @@ -1 +0,0 @@ -/etc/portsentry.conf diff --git a/package/portsentry/ipkg/portsentry.control b/package/portsentry/ipkg/portsentry.control deleted file mode 100644 index f05b282df..000000000 --- a/package/portsentry/ipkg/portsentry.control +++ /dev/null @@ -1,4 +0,0 @@ -Package: portsentry -Priority: optional -Section: net -Description: Software for protection against port scans -- cgit v1.2.3