patch for usaging custom make.conf, when building jails
Olli Hauer
ohauer at gmx.de
Wed Aug 8 14:41:09 EDT 2007
This is a patch I use to build with my own make.conf long time before
option files where available.
--- portbuild.orig
+++ portbuild
@@ -315,6 +315,11 @@
cp -p /rescue/ps ${chroot}/bin
cp -p /usr/bin/killall ${chroot}/usr/bin
+#XXX copy my own make.conf into the build
+if [ -f ${pb}/builds/${branch}.make.conf ]; then
+ cp ${pb}/builds/${branch}.make.conf ${chroot}/etc/make.conf
+fi
+
# XXX This is a hack to fix some recent pkg_add problems in some releases.
if [ -f ${pb}/jails/${jail}/pkg_install.tar ]; then
tar -C ${chroot} -xf ${pb}/jails/${jail}/pkg_install.tar
For example to build this special $branch
- postfix without postgresql
- bugzilla with postgresql
- default apache22 every time same modules
Simply create a ${branch}.make.conf in the $builds directory,
#--- example /tinderbox/builds/6.x-FreeBSD_BugZilla.make.conf ---
#//////////////////////////////////////////////////////////////////////
# own PORTS Category
VALID_CATEGORIES+= MyOwnPorts
.if ${.CURDIR:M*/mail/postfix}
WITH_PCRE=true
WITHOUT_SASL=true
WITHOUT_SASL2=true
WITHOUT_DOVECOT=true
WITHOUT_SASLKRB=true
WITHOUT_SASLKRB5=true
WITHOUT_SASLKMIT=true
WIT_TLS=true
WITHOUT_BDB=true
WITHOUT_MYSQL=true
WITHOUT_PGSQL=true
WITHOUT_OPENLDAP=true
WITHOUT_CDB=true
WITHOUT_NIS=true
WITHOUT_VDA=true
WITH_TEST=true
.endif
.if ${.CURDIR:M*/devel/bugzilla}
WITHOUT_MYSQL=true
WITH_PGSQL=true
WITH_CHARTING_MODULES=true
WITH_GRAPHVIZ=true
WITH_EMAIL_GATEWAY=true
WITH_EXPORT_IMPORT=true
WITH_CONTRIB=true
WITHOUT_LDAP=true
.endif
APACHE_PORT= www/apache22
# all apache versions - module config
.if ${.CURDIR:M*/www/apache*}
WITH_STATIC_MODULES= alias dir log_config mime rewrite setenvif vhost_alias
WITHOUT_MODULES= userdir cern_meta speling
.endif
olli
More information about the tinderbox-list
mailing list