diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-05-30 20:39:07 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-05-30 20:39:07 +0200 |
commit | ba3359722cbf8aa7b0ed39e1f81d1d74ec88fecd (patch) | |
tree | 10c726d162bc0ded85eb7aeacf8f246bd39ad63a /package/base-files/Makefile | |
parent | bbd610f15a71b27c955175cb98392b114717fd47 (diff) |
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
Diffstat (limited to 'package/base-files/Makefile')
-rw-r--r-- | package/base-files/Makefile | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 6f503b2c7..62eebd4c1 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -9,6 +9,9 @@ include $(TOPDIR)/mk/rootfs.mk PKG_NAME:= base-files PKG_VERSION:= 1.0 PKG_RELEASE:= 5 +PKG_DESCR:= basic filesystem structure and scripts +PKG_SECTION:= base + WRKDIST= ${WRKDIR}/base-files NO_DISTFILES:= 1 ifeq ($(CPU_ARCH),x86_64) @@ -22,18 +25,11 @@ ICONTROL_ADDON_BASE_FILES= "Package: base-files-${PKG_ID}" include $(TOPDIR)/mk/package.mk -$(eval $(call PKG_template,BASE_FILES,base-files-${PKG_ID},${PKG_VERSION}-${PKG_RELEASE})) +$(eval $(call PKG_template,BASE_FILES,base-files-${PKG_ID},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) do-install: $(CP) ./files/* $(IDIR_BASE_FILES) $(CP) $(TOPDIR)/target/$(DEVICE)/files/* $(IDIR_BASE_FILES) - typeset -i REV; \ - if fgrep xml .svn/entries >/dev/null 2>&1; then \ - let REV="$$(sed -n '/revision=/s/^.*"\([0-9]*\)".*$$/\1/p' \ - .svn/entries)"; \ - else \ - let REV="$$(head -n 4 .svn/entries | tail -1)"; \ - fi; ${SED} 's,$$R,'$$REV,g $(IDIR_BASE_FILES)/etc/banner $(SED) 's,@TARGET@,$(DEVICE),g' $(IDIR_BASE_FILES)/etc/ipkg.conf $(SED) 's,@VERSION@,$(ADK_VERSION),g' $(IDIR_BASE_FILES)/etc/ipkg.conf echo /bin/sh >${IDIR_BASE_FILES}/etc/shells |