Building bnc-2.9.4.txz (origin /buildshare/ports/355755/irc/bnc) for powerpc-10-0 on XXX slot1: created x distfiles/ x distfiles/bnc2.9.4.tar.gz x packages/ x packages/pkg-1.2.7_2.txz ELF ldconfig path: /lib /usr/lib /usr/lib/compat Make depends ===> bnc-2.9.4 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 bnc-2.9.4 Make install ===> bnc-2.9.4 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by bnc-2.9.4 for building ===> Extracting for bnc-2.9.4 => SHA256 Checksum OK for bnc2.9.4.tar.gz. ===> Patching for bnc-2.9.4 ===> Applying FreeBSD patches for bnc-2.9.4 /usr/bin/sed -e 's,@PREFIX@,/usr/local,g' /obj/buildshare/ports/355755/irc/bnc/work/bnc2.9.4/bncsetup #!/bin/sh # You NEED the dialog program to use this! MYPID=$$ TMPFILE=.bnc$MYPID.tmp RSLFILE=.bnc$MYPID.rsl VHTFILE=.bnc$MYPID.vht BSVERSION="0.7 for BNC2.9.4" SAVEFILE=./bnc.conf bsclean() { rm -f $TMPFILE $RSLFILE $VHTFILE exit $1 } saveit() { echo "Writing your configuration to $SAVEFILE" LISTENEXOPTS= if [ ! -z $BNCHOST ] then LISTENEXOPTS="$LISTENEXOPTS --localhost $BNCHOST" fi if [ -z $BNCPASS ] then usepass= else usepass="password $BNCPASS" fi if [ $MAXUSERS -ne 0 ] then LISTENEXOPTS="$LISTENEXOPTS --limit $MAXUSERS" fi cat << EOF > $TMPFILE #!/home/myhome/bnc # BNCSetup $BSVERSION by IceWizard and pharos # automaticly generated configuration file. # # listen [maxusers] Port to listen for connections on # Or.. # listenex [--ssl] [--limit ] [--localhost ] # adminpass Password for Supervisor Access # # [Optional] # privatekey Required if SSL server is used # publickey Required if SSL server is used # password Password required for general connection (recommended) # allow
[address ...] list of ip/dns's that can use the bnc # vhost
[address ...] Other Vhosts That Can Be Used (display only) # defaultvhost
Default Virtual Host to Use # pidfile Name of PID File (recommended if you use crontab) # motdfile Message of the day, displayed on connection of valid user # logfile Filename where to store logs # # EXAMPLE CONFIG - CHANGE THIS: # if your pass starts with + it is encrypted, if not it is a normal pass # listenex $LISTENEXOPTS $BNCPORT adminpass $SUPERPASS $usepass EOF # S:$SUPERPASS # D:$BNCPORT:$MAXUSERS:$BNCPASS cat $TMPFILE $VHTFILE > $SAVEFILE echo "Finished! You may now edit $SAVEFILE to make any special changes" bsclean 0 } altconf() { echo "##" > $VHTFILE echo "Running alt configuration tool" echo -n "Port to listen on> " read BNCPORT echo "How many users would you like to be allowed on BNC at the same time?" echo "Please note, if you would like to allow unlimited users, enter a 0" echo -n "> " read MAXUSERS echo -n "Pick a password >" read BNCPASS echo -n "Pick a password for the superuser >" read SUPERPASS saveit } echo "BAD\$" > $TMPFILE echo "Test" | mkpasswd -s >> $TMPFILE CRCYS=$(cat $TMPFILE | grep '\$' | tail -1 ) if [ "BAD\$" = "$CRCYS" ] then CRCY=ON else echo "Your OS is using an unstandard Crypt lib, disabling encryption." CRCY=OFF echo "Continuing script in 4 seconds" sleep 4 fi dialog --clear ERRORLEVEL=$? if [ x$ERRORLEVEL != x0 ] then echo "You appear to not have the program named dialog" echo "This script depends on it heavily" altconf bsclean 0 fi cat << EOF > $TMPFILE BNCSETUP v$BSVERSION Written by IceWizard Rewritten by Pharos BNCSetup is a quick BNC conf generator EOF clear dialog --title "BNCSETUP by IceWizard" --msgbox "$(cat $TMPFILE)" 10 50 cat << EOF > $TMPFILE What port would you like BNC to listen on? This must be a number greater than 1024 and must not be in use. EOF BNCPORT= while [ -z "$BNCPORT" ] do dialog --title "Port to listen on" --inputbox "$(cat $TMPFILE)" 10 68 "6669" 2> $RSLFILE ERRORLEVEL=$? BNCPORT="$(head -1 $RSLFILE)" if [ x$ERRORLEVEL = x1 ] then clear echo "BNC Configuration was cancelled..." bsclean 0 fi done BNCHOST= cat << EOF > $TMPFILE Enter the host IP or DNS that bnc will use. EOF dialog --yesno "Enter a host for BNC to listen on (default all hosts)?" 5 60 ERRORLEVEL=$? if [ x$ERRORLEVEL = x0 ] then dialog --title "Enter host" --inputbox "$(cat $TMPFILE)" 10 62 2> $RSLFILE BNCHOST="$(head -1 $RSLFILE)" fi cat << EOF > $TMPFILE How many users would you like to be allowed on BNC at the same time? Please note, if you would like to allow unlimited users, enter a 0 EOF MAXUSERS= while [ -z "$MAXUSERS" ] do dialog --title "Maximum users" --inputbox "$(cat $TMPFILE)" 10 78 "0" 2> $RSLFILE ERRORLEVEL=$? MAXUSERS="$(head -1 $RSLFILE)" if [ x$ERRORLEVEL = x1 ] then clear echo "BNC Configuration was cancelled..." bsclean 0 fi done cat << EOF > $TMPFILE Pick a password you would like to use for BNC? This is the pass that will be used upon /quote pass PASS when using bnc. EOF BNCPASS= while [ -z "$BNCPASS" ] do dialog --title "Pick a password" --inputbox "$(cat $TMPFILE)" 12 60 2> $RSLFILE ERRORLEVEL=$? BNCPASS="$(head -1 $RSLFILE)" if [ x$ERRORLEVEL = x1 ] then clear echo "BNC Configuration was cancelled..." bsclean 0 fi done cat << EOF > $TMPFILE Pick a superviser password you would like to use for BNC? If you are the only person to use your BNC, feel free to enter the same password. EOF SUPERPASS= while [ -z "$SUPERPASS" ] do dialog --title "Pick a superviser password" --inputbox "$(cat $TMPFILE)" 10 62 2> $RSLFILE ERRORLEVEL=$? SUPERPASS="$(head -1 $RSLFILE)" if [ x$ERRORLEVEL = x1 ]; then clear echo "BNC Configuration was cancelled..." bsclean 0 fi done if [ xON = x$CRCY ] then dialog --yesno "Use encrypted passes in config file (Securety)" 5 60 ERRORLEVEL=$? if [ x$ERRORLEVEL = x0 ] then if [ -x /usr/local/bin/mkpasswd ] then SUPERPASS="+"$(echo "$SUPERPASS" | mkpasswd -s) BNCPASS="+"$(echo "$BNCPASS" | mkpasswd -s) else clear echo "You have not did ./configure and make so there is no mkpasswd" echo "This program is required to produce the encryption" bsclean 0 fi fi fi rm -f $VHTFILE dialog --radiolist "Choose Allow method" 10 70 3 \ "0" "Allow ANY ip to use bnc if they know the pass" "on" \ "1" "Go to menu for creating ip lists" "off" 2> $RSLFILE ERRORLEVEL=$? if [ x$ERRORLEVEL = x1 ]; then clear echo "BNC Configuration was cancelled..." bsclean 0 fi ERRORLEVEL="$(head -1 $RSLFILE)" cat << EOF > $TMPFILE Enter an IP to be allowed to use BNC. this ip can include *'s and ?'s and other wildcard stuff. enter q alone to end entering IP's EOF if [ x$ERRORLEVEL = x1 ] then BDONE= while ! [ x$BDONE = xq ] do dialog --title "Enter Wildcard IP" --inputbox "$(cat $TMPFILE)" 10 62 2> $RSLFILE BDONE="$(head -1 $RSLFILE)" if ! [ -z BDONE ] then if ! [ x$BDONE = xq ] then echo "allow $BDONE" >> $VHTFILE fi fi done fi if ! [ -e "$VHTFILE" ] then echo "allow *" > $VHTFILE fi cat << EOF > $TMPFILE Enter a Default Vhost IP or DNS that bnc will use. EOF dialog --yesno "Enter a default Vhost to use?" 5 60 ERRORLEVEL=$? if [ x$ERRORLEVEL = x0 ] then dialog --title "Enter Default Vhost" --inputbox "$(cat $TMPFILE)" 10 62 2> $RSLFILE BDONE="$(head -1 $RSLFILE)" if ! [ -z BDONE ] then echo "defaultvhost $BDONE" >> $VHTFILE fi fi dialog --yesno "Enter a list of Vhost possiblities?" 5 60 ERRORLEVEL=$? cat << EOF > $TMPFILE Enter an Vhost that can be used by this bnc. This has no bearing on how bnc functions but is simply what is listed when the user does: /quote vip enter q alone to end entering IP's EOF if [ x$ERRORLEVEL = x0 ] then BDONE= while ! [ x$BDONE = xq ] do dialog --title "Enter Vhost possibility" --inputbox "$(cat $TMPFILE)" 15 62 2> $RSLFILE BDONE="$(head -1 $RSLFILE)" if ! [ -z BDONE ] then if ! [ x$BDONE = xq ] then echo "vhost $BDONE" >> $VHTFILE fi fi done fi dialog --yesno "Would you like bnc to log?" 5 60 ERRORLEVEL=$? cat << EOF > $TMPFILE Pick a filename for bnc to write logging info into. if you do not want to use the default EOF if [ x$ERRORLEVEL = x0 ] then dialog --title "Enter logfile Filename" --inputbox "$(cat $TMPFILE)" 10 62 "bnc.log" 2> $RSLFILE BDONE="$(head -1 $RSLFILE)" if ! [ -z BDONE ] then echo "logfile $BDONE" >> $VHTFILE fi fi dialog --yesno "Would you like bnc to display a motd?" 5 60 ERRORLEVEL=$? cat << EOF > $TMPFILE Pick a filename for bnc to show as a motd if you do not want to use the default EOF if [ x$ERRORLEVEL = x0 ] then dialog --title "Enter motd Filename" --inputbox "$(cat $TMPFILE)" 10 62 "motd" 2> $RSLFILE BDONE="$(head -1 $RSLFILE)" if ! [ -z BDONE ] then echo "motdfile $BDONE" >> $VHTFILE fi fi dialog --title "Requires Identwd to be installed." --yesno "Do you want bnc's dynamic ident support?" 5 60 ERRORLEVEL=$? if [ x$ERRORLEVEL = x0 ] then echo "useidentwd 1" >> $VHTFILE fi cat << EOF > $TMPFILE Pick a file to save the configuration in if you do not want to use the default EOF SAVEFILE= while [ -z "$SAVEFILE" ] do dialog --title "Save as" --inputbox "$(cat $TMPFILE)" 10 45 "bnc.conf" 2> $RSLFILE ERRORLEVEL=$? SAVEFILE="$(head -1 $RSLFILE)" if [ x$ERRORLEVEL = x1 ]; then clear echo "BNC Configuration was cancelled..." bsclean 0 fi done clear if [ -e "$SAVEFILE" ] then echo "BNCsetup found a configuration file already... saving it as $SAVEFILE.old" mv $SAVEFILE "$SAVEFILE".old fi saveit ===> Configuring for bnc-2.9.4 ===> FreeBSD 10 autotools fix applied to /obj/buildshare/ports/355755/irc/bnc/work/bnc2.9.4/configure configure: loading site script /buildshare/ports/355755/Templates/config.site 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 how to run the C preprocessor... cpp checking for library containing strerror... none required checking for egrep... grep -E checking for AIX... no checking for ANSI C header files... (cached) yes checking for sys/wait.h that is POSIX.1 compatible... (cached) yes checking whether time.h and sys/time.h may both be included... 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 sys/time.h... (cached) yes checking for unistd.h... (cached) yes checking for sys/select.h... (cached) yes checking return type of signal handlers... void checking for select in -lsocket... no checking for select in -lnsl... no checking for gethostbyname in -lresolv... no checking for malloc in -lgnumalloc... no checking for malloc in -lbsdmalloc... no checking for select in -linet... no checking for select in -lcposix... no checking for select in -lnet... no checking for crypt in -lcrypt... (cached) yes checking whether to enable SSL support... no checking for snprintf... (cached) yes checking for vsnprintf... (cached) yes checking for gethostbyname2... yes configure: creating ./config.status config.status: creating Makefile config.status: creating config.h ===> Building for bnc-2.9.4 cc -O3 -Wall -include config.h -c bnc.c cc -O3 -Wall -include config.h -c conf.c conf.c: In function 'loadconf': conf.c:597: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness conf.c:603: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness conf.c:609: warning: pointer targets in passing argument 1 of 'strtok' differ in signedness conf.c:634: warning: pointer targets in passing argument 1 of 'strtok' differ in signedness cc -O3 -Wall -include config.h -c server.c server.c: In function 'send_queued': server.c:406: warning: pointer targets in passing argument 2 of 'sbuf_pagemap' differ in signedness server.c: In function 'identwd_unlock': server.c:570: warning: pointer targets in passing argument 3 of 'getsockname' differ in signedness server.c: In function 'dccsend': server.c:1123: warning: pointer targets in passing argument 2 of 'sbuf_pagemap' differ in signedness server.c: In function 'addon_client': server.c:1546: warning: pointer targets in passing argument 3 of 'getpeername' differ in signedness cc -O3 -Wall -include config.h -c cmds.c cmds.c: In function 'handlepclient': cmds.c:404: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness cmds.c:406: warning: pointer targets in passing argument 1 of 'remnl' differ in signedness cc -O3 -Wall -include config.h -c ctcp.c ctcp.c: In function 'ctdcc_send': ctcp.c:333: warning: dereferencing type-punned pointer will break strict-aliasing rules cc -O3 -Wall -include config.h -c send.c cc -O3 -Wall -include config.h -c sbuf.c sbuf.c: In function 'sbuf_getmsg': sbuf.c:200: warning: 'rlength' may be used uninitialized in this function cc -o bnc bnc.o conf.o server.o cmds.o ctcp.o sbuf.o send.o -lcrypt cc -O3 -Wall -include config.h -o mkpasswd mkpasswd.c -lcrypt ===> Staging for bnc-2.9.4 ===> Generating temporary packing list install -s -o root -g wheel -m 555 /obj/buildshare/ports/355755/irc/bnc/work/bnc2.9.4/bnc /obj/buildshare/ports/355755/irc/bnc/work/bnc2.9.4/mkpasswd /obj/buildshare/ports/355755/irc/bnc/work/stage/usr/local/bin install -o root -g wheel -m 555 /obj/buildshare/ports/355755/irc/bnc/work/bnc2.9.4/bncchk /obj/buildshare/ports/355755/irc/bnc/work/bnc2.9.4/bncsetup /obj/buildshare/ports/355755/irc/bnc/work/stage/usr/local/bin /bin/mkdir -p /obj/buildshare/ports/355755/irc/bnc/work/stage/usr/local/share/doc/bnc install -o root -g wheel -m 444 /obj/buildshare/ports/355755/irc/bnc/work/bnc2.9.4/COPYING /obj/buildshare/ports/355755/irc/bnc/work/bnc2.9.4/Changelog /obj/buildshare/ports/355755/irc/bnc/work/bnc2.9.4/README /obj/buildshare/ports/355755/irc/bnc/work/bnc2.9.4/example.conf /obj/buildshare/ports/355755/irc/bnc/work/stage/usr/local/share/doc/bnc/ install -o root -g wheel -m 444 /obj/buildshare/ports/355755/irc/bnc/work/bnc2.9.4/example.conf /obj/buildshare/ports/355755/irc/bnc/work/stage/usr/local/etc/bnc.conf.sample ====> Compressing man pages (compress-man) ===> Installing for bnc-2.9.4 ===> Checking if irc/bnc already installed ===> Registering installation for bnc-2.9.4 Installing bnc-2.9.4... done ===> SECURITY REPORT: This port has installed the following files which may act as network servers and may therefore pose a remote security risk to the system. /usr/local/bin/bnc If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. Make package ===> Building package for bnc-2.9.4 slot1: removed