#!/bin/sh user=postfix group=postfix group2=maildrop ask() { local question default answer question=$1 default=$2 if [ -z "${PACKAGE_BUILDING}" ]; then read -p "${question} [${default}]? " answer fi if [ x${answer} = x ]; then answer=${default} fi echo ${answer} } yesno() { local dflt question answer question=$1 dflt=$2 while :; do answer=$(ask "${question}" "${dflt}") case "${answer}" in [Yy]*) return 0;; [Nn]*) return 1;; esac echo "Please answer yes or no." done } if [ x"$2" = xPRE-INSTALL ]; then if /usr/sbin/pw groupshow "${group}" 2>/dev/null; then echo "You already have a group \"${group}\", so I will use it." else echo "You need a group \"${group}\"." if yesno "Would you like me to create it" y; then /usr/sbin/pw groupadd ${group} -h - || exit echo "Done." else echo "Please create it, and try again." exit 1 fi fi if /usr/sbin/pw groupshow "${group2}" 2>/dev/null; then echo "You already have a group \"${group2}\", so I will use it." else echo "You need a group \"${group2}\"." if yesno "Would you like me to create it" y; then /usr/sbin/pw groupadd ${group2} -h - || exit echo "Done." else echo "Please create it, and try again." exit 1 fi fi if /usr/sbin/pw user show "${user}" 2>/dev/null; then echo "You already have a user \"${user}\", so I will use it." else echo "You need a user \"${user}\"." if yesno "Would you like me to create it" y; then /usr/sbin/pw useradd ${user} -g ${group} -h - -d /nonexistent \ -s /nonexistent -c "Postfix Mail System" || exit echo "Done." else echo "Please create it, and try again." exit 1 fi fi fi if [ x"$2" = xPOST-INSTALL ]; then if [ ! -e ${PKG_PREFIX}/etc/postfix/main.cf ]; then cp -p ${PKG_PREFIX}/etc/postfix/sample-main.cf \ ${PKG_PREFIX}/etc/postfix/main.cf fi if [ ! -e ${PKG_PREFIX}/etc/postfix/master.cf ]; then cp -p ${PKG_PREFIX}/etc/postfix/sample-master.cf \ ${PKG_PREFIX}/etc/postfix/master.cf fi /usr/sbin/chown root:maildrop ${PKG_PREFIX}/sbin/postdrop /bin/chmod 2555 ${PKG_PREFIX}/sbin/postdrop /bin/mkdir -p /var/spool/postfix ${PKG_PREFIX}/sbin/postfix check fi /devel/electron4/files/minimist-1.2.3'>dependabot/npm_and_yarn/devel/electron4/files/minimist-1.2.3 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
path: root/games/criticalmass
Commit message (Expand)AuthorAgeFilesLines
* -remove MD5ohauer2011-07-031-1/+0
* - update to 1.4.1dinoex2010-03-281-1/+1
* - update to jpeg-8dinoex2010-02-051-1/+1
* - Update devel/sdl12 to version 1.2.14.mva2010-01-301-1/+1
* - Switch SourceForge ports to the new File Release System: categories startin...amdmi32009-08-221-1/+1
* - bump all port that indirectly depends on libjpeg and have not yet been bump...dinoex2009-07-311-1/+1
* Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.rafan2008-08-211-1/+0
* - Remove unneeded dependency from gtk12/gtk20 [1]miwi2008-04-201-5/+4
* - Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORGmiwi2008-03-221-2/+2
* - Chase devel/sdl12 shlib version bumpmiwi2008-03-131-1/+1
* - Welcome X.org 7.2 \o/.flz2007-05-20