]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
build-essentials: Add support for prerequires.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 24 Jul 2011 16:18:48 +0000 (18:18 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 24 Jul 2011 16:18:48 +0000 (18:18 +0200)
pkgs/build-essentials/build-essentials.nm
pkgs/build-essentials/buildsystem-tools/dependency-tracker
pkgs/build-essentials/buildsystem/Constants

index c7082044689400f8ee0c15e827a04a6a9bb7491e..e29fa4216d47cf0ed65f6461c5c603a44b5d5e5a 100644 (file)
@@ -25,9 +25,9 @@
 include $(PKGROOT)/Include
 
 PKG_NAME       = build-essentials
-PKG_VER        = $(DISTRO_VERSION)
-PKG_REL        = 20
-PKG_EPOCH      = 1
+PKG_VER        = 1.0
+PKG_REL        = 1
+PKG_EPOCH      = 2
 PKG_ARCH       = noarch
 
 PKG_MAINTAINER = Michael Tremer <michael.tremer@ipfire.org>
index 887b7f4d66a5db3b259bde4f3afd7c4b9de39faf..1c29025e40b49aa1455e785d41fa8afd526a589c 100755 (executable)
@@ -16,8 +16,12 @@ for require in $(find_requires ${args}); do
        listmatch ${require} ${provides} || requires="${requires} ${require}"
 done
 
-echo "provides=\"${provides}\""
+if [ -n "${PKG_PREREQUIRES}" ]; then
+       echo "prerequires=\"/bin/sh ${PKG_PREREQUIRES}\""
+fi
 echo "requires=\"${requires}\""
+echo "provides=\"${provides}\""
+echo "provides=\"${PKG_CONFLICTS}\""
 echo "obsoletes=\"${PKG_OBSOLETES}\""
 
 exit 0
index 19a5e8ab238810928bf5357fd3b5e30caf58bcf8..d46d5f3cc7f96146d38f88979d4461a0914f34a5 100644 (file)
@@ -61,8 +61,12 @@ SYSTEMD_TMPFILES_DIR = /usr/lib/tmpfiles.d
 PKG_VARIABLES = \
        CONTROL_PREIN \
        CONTROL_PREUN \
+       CONTROL_PREUP \
        CONTROL_POSTIN \
        CONTROL_POSTUN \
+       CONTROL_POSTUP \
+       CONTROL_POSTTRANSIN \
+       CONTROL_POSTTRANSUN \
        \
        PKG_ARCH \
        PKG_BUILD_DEPS \
@@ -80,6 +84,7 @@ PKG_VARIABLES = \
        PKG_URL \
        PKG_VER \
        \
+       PKG_PREREQUIRES \
        PKG_PROVIDES_FILTER \
        PKG_REQUIRES_FILTER