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/alsa-lib/Makefile | 11 +++++++---- package/alsa-lib/files/alsa-lib.postinst | 4 ++++ package/alsa-lib/ipkg/alsa-lib.control | 4 ---- package/alsa-lib/ipkg/alsa-lib.postinst | 4 ---- 4 files changed, 11 insertions(+), 12 deletions(-) create mode 100644 package/alsa-lib/files/alsa-lib.postinst delete mode 100644 package/alsa-lib/ipkg/alsa-lib.control delete mode 100644 package/alsa-lib/ipkg/alsa-lib.postinst (limited to 'package/alsa-lib') diff --git a/package/alsa-lib/Makefile b/package/alsa-lib/Makefile index e57470e40..4c82c6419 100644 --- a/package/alsa-lib/Makefile +++ b/package/alsa-lib/Makefile @@ -9,13 +9,17 @@ PKG_NAME:= alsa-lib PKG_VERSION:= 1.0.19 PKG_RELEASE:= 1 PKG_MD5SUM:= 73db3666c211e5fb023bb77450cf430d -MASTER_SITES:= ftp://ftp.task.gda.pl/pub/linux/misc/alsa/lib/ \ +PKG_DESCR:= ALSA sound library +PKG_SECTION:= libs +PKG_URL:= http://www.alsa-project.org +PKG_SITES:= ftp://ftp.task.gda.pl/pub/linux/misc/alsa/lib/ \ ftp://ftp.alsa-project.org/pub/lib/ + DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2 include ${TOPDIR}/mk/package.mk -$(eval $(call PKG_template,ALSA_LIB,alsa-lib,${PKG_VERSION}-${PKG_RELEASE})) +$(eval $(call PKG_template,ALSA_LIB,alsa-lib,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) CONFIGURE_STYLE= gnu CONFIGURE_ARGS+= --disable-python @@ -23,8 +27,7 @@ BUILD_STYLE= auto INSTALL_STYLE= auto confprog post-install: - ${INSTALL_DIR} ${IDIR_ALSA_LIB}/usr/lib - ${INSTALL_DIR} ${IDIR_ALSA_LIB}/usr/share/alsa + ${INSTALL_DIR} ${IDIR_ALSA_LIB}/usr/lib ${IDIR_ALSA_LIB}/usr/share/alsa ${CP} ${WRKINST}/usr/lib/libasound.so.* ${IDIR_ALSA_LIB}/usr/lib/ ${CP} ${WRKINST}/usr/share/alsa/* ${IDIR_ALSA_LIB}/usr/share/alsa/ diff --git a/package/alsa-lib/files/alsa-lib.postinst b/package/alsa-lib/files/alsa-lib.postinst new file mode 100644 index 000000000..848959231 --- /dev/null +++ b/package/alsa-lib/files/alsa-lib.postinst @@ -0,0 +1,4 @@ +#!/bin/sh +. $IPKG_INSTROOT/etc/functions.sh +gid=$(get_next_gid) +add_group audio $gid diff --git a/package/alsa-lib/ipkg/alsa-lib.control b/package/alsa-lib/ipkg/alsa-lib.control deleted file mode 100644 index 480bb0dae..000000000 --- a/package/alsa-lib/ipkg/alsa-lib.control +++ /dev/null @@ -1,4 +0,0 @@ -Package: alsa-lib -Priority: optional -Section: libs -Description: ALSA sound library diff --git a/package/alsa-lib/ipkg/alsa-lib.postinst b/package/alsa-lib/ipkg/alsa-lib.postinst deleted file mode 100644 index 848959231..000000000 --- a/package/alsa-lib/ipkg/alsa-lib.postinst +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -. $IPKG_INSTROOT/etc/functions.sh -gid=$(get_next_gid) -add_group audio $gid -- cgit v1.2.3