[PC-BSD Pbi-dev] How about add something to auto populate OTHERPORT?

loader loader at freebsdmall.com
Sat Sep 26 07:47:23 PDT 2009


I think it can reduce the work of maintaining copy-files
when put some ports into a bundle pbi, something like
mutt+getmail/fetchmail+msmtp+procmail+gnupg+...

Regards,
loader

--- 3.makepbi.sh.orig	2009-09-20 20:19:07.000000000 +0800
+++ 3.makepbi.sh	2009-09-21 15:16:09.000000000 +0800
@@ -41,6 +41,7 @@
 # Unset the PBIVERSION
 PBIVERSION="" ; export PBIVERSION
 PBIAUTOPOPULATE="" ; export PBIAUTOPOPULATE
+PBIAUTOPOPULATE_OTHERPORT="" ; export PBIAUTOPOPULATE_OTHERPORT
 INMATEVER="" ; export INMATEVER
 BUILDINMATE="" ; export BUILDINMATE
 
@@ -123,6 +124,19 @@
   else
     /autopopulate.sh "${PKGNAME}" "${PBILOCALBASE}" "${PBIDIR}"
   fi
+
+  # Perform PBI auto-population for OTHERPORT
+  if [ "${PBIAUTOPOPULATE_OTHERPORT}" = "YES" -o "${PBIAUTOPOPULATE_OTHER}" = "ON" ]
+  then
+    while read line
+    do
+      if [ ! -z "$line" -a "$line" != " " ]
+      then
+        OTHER_PKGNAME="`/usr/bin/make -C ${line} -V PKGNAME`"
+        /autopopulate.sh "${OTHER_PKGNAME}" "${PBILOCALBASE}" "${PBIDIR}" "/autopopulate.sh"
+      fi
+    done < "/tmp/otherports"
+  fi
 fi
 
 if [ -e "/module/copy-files" ]


More information about the Pbi-dev mailing list