summaryrefslogblamecommitdiff
path: root/net/cap/scripts/configure
blob: f28746bf5489b1353bfa85f01c1948c97cf457e0 (plain) (tree)
1
2
         
                                  























                                                                                        
                                  





                                                        
#!/bin/sh
if [ X"${BATCH}" != X"yes" ]; then
    echo "This port comes with reasonable defaults as follows:"
    echo "  Native Ethertalk with Phase 2 compatibility."
    echo "  Critical AUFS stat() calls to be cached. (STAT_CACHE)"
    echo "  USR1 signal makes parent aufs re-read system volumes file. (REREAD_AFPVOLS)"
    echo "  Pid of aufs is dumped to /var/run/aufs.pid. (PID_FILE)"
    echo "  User defined file suffix to creator/type/xlate mapping. (USR_FILE_TYPES)"
    echo "  Automatically create user .afpvols and 'mac' directories if non-existent."
    echo "    (CREATE_AFPVOL)"
    echo "  Fix permissions on network trash stuff. (NETWORKTRASH)"
    echo "  Add entry to the 'wtmp' file for each AUFS connection. (LOG_WTMP)"
    echo "  Run lpd job as Chooser Name if it is valid UNIX account and "
    echo "    refuse printing if Chooser name is invalid. (RUN_AS_USER, USER_REQUIRED)"
    echo "  Lpr output to stdout/stderr are included in lwsrv log. (LWSRV_LPR_LOG)"
    echo
    echo -n "Would you like to use them? (y/n)> "
    read ans
    case ${ans} in
      y*|Y*) BATCH=yes ;;
    esac
  fi

echo "===>  Copying custom m4.features file."
cp ${FILESDIR}/m4.features ${WRKSRC}

if [ X"${BATCH}" != X"yes" ]; then
    (cd ${WRKSRC}; ./Configure)
  else
    sed -e s+@CWD@+${WRKSRC}+ -e s+@PREFIX@+${PREFIX}+ \
      ${FILESDIR}/m4.setup.in > ${WRKSRC}/m4.setup
    (cd ${WRKSRC}; ./gen.makes)
  fi