Building courierpasswd-1.1.2.txz (origin /buildshare/ports/355755/security/courierpasswd) for powerpc-10-0 on XXX slot2: created x distfiles/ x distfiles/courierpasswd-1.1.2.tar.gz x packages/ x packages/courier-authlib-base-0.66.1.txz x packages/autoconf-2.69.txz x packages/gmake-3.82_1.txz x packages/automake-1.14.txz x packages/m4-1.4.17_1,1.txz x packages/help2man-1.43.3_1.txz x packages/perl5-5.16.3_10.txz x packages/libltdl-2.4.2_3.txz x packages/gettext-0.18.3.1_1.txz x packages/p5-Locale-gettext-1.05_3.txz x packages/autoconf-wrapper-20131203.txz x packages/automake-wrapper-20131203.txz x packages/sysconftool-0.17.txz x packages/pkg-1.2.7_2.txz ELF ldconfig path: /lib /usr/lib /usr/lib/compat Make depends ===> courierpasswd-1.1.2 depends on file: /usr/local/sbin/pkg - not found ===> Verifying install for /usr/local/sbin/pkg in /buildshare/ports/355755/ports-mgmt/pkg ===> Installing existing package /packages/pkg-1.2.7_2.txz Installing pkg-1.2.7_2... done If you are upgrading from the old package format, first run: # pkg2ng ===> Returning to build of courierpasswd-1.1.2 ===> courierpasswd-1.1.2 depends on executable: courierauthconfig - not found ===> Verifying install for courierauthconfig in /buildshare/ports/355755/security/courier-authlib-base ===> Installing existing package /packages/courier-authlib-base-0.66.1.txz Installing courier-authlib-base-0.66.1...Installing perl5-5.16.3_10... done Installing sysconftool-0.17... done Installing libltdl-2.4.2_3... done Added group "courier". Added user "courier". courier:*:465: courier:*:465:465::0:0:Courier Mail System:/var/spool/courier:/sbin/nologin authdaemonrc: authmodulelist: new authmodulelistorig: new daemons: new authdaemonvar: new subsystem: new DEBUG_LOGIN: new DEFAULTOPTIONS: new LOGGEROPTS: new LDAP_TLS_OPTIONS: new done ===> Returning to build of courierpasswd-1.1.2 ===> courierpasswd-1.1.2 depends on executable: gmake - not found ===> Verifying install for gmake in /buildshare/ports/355755/devel/gmake ===> Installing existing package /packages/gmake-3.82_1.txz Installing gmake-3.82_1...Installing gettext-0.18.3.1_1... done done ===> Returning to build of courierpasswd-1.1.2 ===> courierpasswd-1.1.2 depends on executable: courierauthconfig - found Make install ===> courierpasswd-1.1.2 depends on file: /usr/local/sbin/pkg - found ############################################################# You should set the following build option. MINUID=uid Accounts with uids below this value cannot have their passwords changed. Default value is 100. ############################################################# ===> Fetching all distfiles required by courierpasswd-1.1.2 for building ===> Extracting for courierpasswd-1.1.2 => SHA256 Checksum OK for courierpasswd-1.1.2.tar.gz. ===> Patching for courierpasswd-1.1.2 ===> courierpasswd-1.1.2 depends on executable: courierauthconfig - found ===> courierpasswd-1.1.2 depends on executable: gmake - found ===> Configuring for courierpasswd-1.1.2 ===> FreeBSD 10 autotools fix applied to /obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2/aclocal.m4 ===> FreeBSD 10 autotools fix applied to /obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2/configure configure: loading site script /buildshare/ports/355755/Templates/config.site checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel checking whether build environment is sane... yes checking whether gmake sets $(MAKE)... yes checking for working aclocal-1.4... missing checking for working autoconf... missing checking for working automake-1.4... missing checking for working autoheader... missing checking for working makeinfo... found checking for gcc... cc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ANSI C... none needed checking for ranlib... ranlib checking build system type... powerpc-portbld-freebsd11.0 checking host system type... powerpc-portbld-freebsd11.0 checking for a sed that does not truncate output... /usr/bin/sed checking for egrep... grep -E checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking how to run the C preprocessor... cpp checking for ANSI C header files... (cached) yes checking for sys/types.h... (cached) yes checking for sys/stat.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for memory.h... (cached) yes checking for strings.h... (cached) yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking for unistd.h... (cached) yes checking for dlfcn.h... (cached) yes checking whether we are using the GNU C++ compiler... yes checking whether c++ accepts -g... yes checking how to run the C++ preprocessor... c++ -E checking for g77... no checking for f77... no checking for xlf... no checking for frt... no checking for pgf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for f90... no checking for xlf90... no checking for pgf90... no checking for epcf90... no checking for f95... no checking for fort... no checking for xlf95... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for gfortran... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking the maximum length of command line arguments... (cached) 262144 checking command to parse /usr/bin/nm -B output from cc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... (cached) ranlib checking for strip... strip checking if cc static flag works... yes checking if cc supports -fno-rtti -fno-exceptions... no checking for cc option to produce PIC... -fPIC checking if cc PIC flag -fPIC works... yes checking if cc supports -c -o file.o... yes checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... freebsd11.0 ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by c++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes checking for c++ option to produce PIC... -fPIC checking if c++ PIC flag -fPIC works... yes checking if c++ supports -c -o file.o... yes checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... freebsd11.0 ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes appending configuration tag "F77" to libtool checking for ANSI C header files... (cached) yes checking for errno.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for strings.h... (cached) yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking for size_t... (cached) yes checking for uid_t in sys/types.h... (cached) yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... (cached) yes checking for stdlib.h... (cached) yes checking for GNU libc compatible realloc... yes checking for memset... (cached) yes checking for strchr... yes checking for strerror... (cached) yes checking for strspn... yes checking for strlcpy... (cached) yes checking for courierauthconfig... /usr/local/bin/courierauthconfig configure: creating ./config.status config.status: creating Makefile config.status: creating replace/Makefile config.status: creating config.h config.status: executing default-1 commands ===> Building for courierpasswd-1.1.2 gmake[1]: Entering directory `/obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2' gmake all-recursive gmake[2]: Entering directory `/obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2' Making all in replace gmake[3]: Entering directory `/obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2/replace' rm -f libreplace.a ar cru libreplace.a ranlib libreplace.a gmake[3]: Leaving directory `/obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2/replace' gmake[3]: Entering directory `/obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2' cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -O2 -pipe -fno-strict-aliasing -c courierpasswd.c cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -O2 -pipe -fno-strict-aliasing -c base64.c cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -O2 -pipe -fno-strict-aliasing -c getopt_long.c cc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include -O2 -pipe -fno-strict-aliasing -c xmalloc.c /bin/sh ./libtool --mode=link cc -O2 -pipe -fno-strict-aliasing -L/usr/local/lib -o courierpasswd courierpasswd.o base64.o getopt_long.o xmalloc.o -L/usr/local/lib/courier-authlib -lcourierauth ./replace/libreplace.a mkdir .libs cc -O2 -pipe -fno-strict-aliasing -o courierpasswd courierpasswd.o base64.o getopt_long.o xmalloc.o -L/usr/local/lib -L/usr/local/lib/courier-authlib /usr/local/lib/courier-authlib/libcourierauth.so ./replace/libreplace.a -Wl,--rpath -Wl,/usr/local/lib/courier-authlib -Wl,--rpath -Wl,/usr/local/lib/courier-authlib gmake[3]: Leaving directory `/obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2' gmake[2]: Leaving directory `/obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2' gmake[1]: Leaving directory `/obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2' ===> Installing for courierpasswd-1.1.2 ===> courierpasswd-1.1.2 depends on executable: courierauthconfig - found ===> Generating temporary packing list ===> Checking if security/courierpasswd already installed gmake[1]: Entering directory `/obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2' Making install in replace gmake[2]: Entering directory `/obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2/replace' gmake[3]: Entering directory `/obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2/replace' gmake[3]: Nothing to be done for `install-exec-am'. gmake[3]: Nothing to be done for `install-data-am'. gmake[3]: Leaving directory `/obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2/replace' gmake[2]: Leaving directory `/obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2/replace' gmake[2]: Entering directory `/obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2' gmake[3]: Entering directory `/obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2' /bin/sh ./mkinstalldirs /usr/local/sbin /bin/sh ./libtool --mode=install install -s -o root -g wheel -m 555 courierpasswd /usr/local/sbin/courierpasswd install -o root -g wheel -m 555 -s courierpasswd /usr/local/sbin/courierpasswd gmake install-exec-hook gmake[4]: Entering directory `/obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2' chown root /usr/local/sbin/courierpasswd chmod 511 /usr/local/sbin/courierpasswd gmake[4]: Leaving directory `/obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2' gmake install-man8 gmake[4]: Entering directory `/obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2' /bin/sh ./mkinstalldirs /usr/local/man/man8 install -o root -g wheel -m 444 ./courierpasswd.8 /usr/local/man/man8/courierpasswd.8 gmake[4]: Leaving directory `/obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2' gmake[3]: Leaving directory `/obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2' gmake[2]: Leaving directory `/obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2' gmake[1]: Leaving directory `/obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2' /bin/mkdir -p /usr/local/share/doc/courierpasswd install -o root -g wheel -m 444 /obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2/AUTHORS /usr/local/share/doc/courierpasswd install -o root -g wheel -m 444 /obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2/ChangeLog /usr/local/share/doc/courierpasswd install -o root -g wheel -m 444 /obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2/COPYING /usr/local/share/doc/courierpasswd install -o root -g wheel -m 444 /obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2/INSTALL /usr/local/share/doc/courierpasswd install -o root -g wheel -m 444 /obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2/NEWS /usr/local/share/doc/courierpasswd install -o root -g wheel -m 444 /obj/buildshare/ports/355755/security/courierpasswd/work/courierpasswd-1.1.2/README /usr/local/share/doc/courierpasswd ######################################################################### NOTES FOR RUNNING COURIERPASSWD In order to use courierpasswd, it must be able to access the authdaemon domain socket, named 'socket'. When courierpasswd runs as root, this presents no problem. However, if you need to run courierpasswd as a non-root user, you have three options, all of which require some manual work. Option 1: Add the user courierpasswd will run as to the group that owns the authdaemon socket directory in /etc/group. More than one user can be added to the group vector in this way. This arrangement works well if courierpasswd will be run by only a small number of users. If the authdaemon socket directory is owned by courier:courier and you run courierpasswd as user vmail, your /etc/group file will have a line something like this: courier:x:465:vmail Option 2: Some programs, such as tcpserver, allow you to separately set the uid and gid of programs they call but don't honour the group vector found in /etc/group. If you invoke courierpasswd from such a program, set the gid to the group ownership of the authdaemon socket directory. For tcpserver, you could do something like this: #!/bin/sh QMAILUID=`/usr/bin/id -u qmaild` COURIERGID=`/usr/bin/id -g courier` exec /usr/local/bin/tcpserver -u "$QMAILUID" -g "$COURIERGID" \ 0 smtp /var/qmail/bin/qmail-smtpd /usr/local/sbin/courierpasswd -- \ /usr/bin/true 2>&1 Option 3: Change the permissions on courierpasswd to set gid to the group ownership of the socket directory. Again, if the socket directory is owned by courier:courier, change the ownership and permissions of courierpasswd like so: chgrp courier courierpasswd chmod g+s courierpasswd Be aware that courierpasswd does not provide any max-failed-retry functionality so it is possible for local users to perform dictionary attacks against account passwords if courierpasswd is set up this way. The location of the authdaemon domain socket is listed in the authdaemonrc configuration file as the parameter authdaemonvar. ######################################################################### ===> Compressing manual pages for courierpasswd-1.1.2 ===> Registering installation for courierpasswd-1.1.2 Installing courierpasswd-1.1.2... done Make package ===> Building package for courierpasswd-1.1.2 Creating package for courierpasswd-1.1.2 slot2: removed