Skip to content

Commit

Permalink
As specified in the "CUSTOMISATION" section of the poudriere man page:
Browse files Browse the repository at this point in the history
https://fossil.etoilebsd.net/poudriere/doc/trunk/doc/poudriere.8.wiki#x435553544f4d49534154494f4e

poudriere will look for per-port options in a file:

etc/poudriere.d/options/<portname>/options

If poudriere is building net/samba41, then it will look for port-specific
options in:

etc/poudriere.d/options/net_samba41/options

The etc/poudriere.d/options/net_samba41 directory will be nullfs mounted
on the /var/db/ports directory of the jail.  This allows net/samba41 to be
built with custom options.
  • Loading branch information
Craig Rodrigues committed Apr 16, 2014
1 parent e1acb2a commit fda8bc3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build/ports/create-ports-list.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ TOP="$(pwd)"

PORTSLIST=${NANO_OBJ}/poudriere/etc/ports.txt
MAKECONF=${NANO_OBJ}/poudriere/etc/make.conf
PORTOPTIONS=${NANO_OBJ}/poudriere/etc/poudriere.d/options

# Take the old add_port invocations from
# the nanobsd script, and create input files
Expand All @@ -24,9 +25,10 @@ add_port()
PORT=$var
PORT_UND=$(echo $var|sed -e 's|/|_|g')
echo $PORT >> $PORTSLIST

mkdir -p ${PORTOPTIONS}/${PORT_UND}
rm -f ${PORTOPTIONS}/${PORT_UND}/options
else
echo "${PORT_UND}_SET += ${var}" >> $MAKECONF
echo "$var" >> ${PORTOPTIONS}/${PORT_UND}/options
fi
done
}
Expand All @@ -37,6 +39,7 @@ add_port_debug()
}

mkdir -p $(dirname ${PORTSLIST})
mkdir -p ${PORTOPTIONS}
rm -f ${PORTSLIST}
rm -f ${MAKECONF}

Expand Down

0 comments on commit fda8bc3

Please sign in to comment.