diff --git a/security/pks/Makefile b/security/pks/Makefile index 3ef0ece127f2..68e4c73f5312 100644 --- a/security/pks/Makefile +++ b/security/pks/Makefile @@ -1,57 +1,53 @@ # Created by: kris@FreeBSD.org # $FreeBSD$ PORTNAME= pks PORTVERSION= 0.9.6.20040312 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= security www MASTER_SITES= http://pks.sourceforge.net/ LOCAL/mandree DISTFILES= pks-current.tgz MAINTAINER= tphilipp@potion-studios.com COMMENT= PGP Public Key Server LICENSE= BSD4CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE WRKSRC= ${WRKDIR}/${PORTNAME} USE_GCC= any USES= bdb ssl OPTIONS_DEFINE= DOCS PORTDOCS= pks_help.* README EMAIL GNU_CONFIGURE= yes -USE_AUTOTOOLS= autoconf -CONFIGURE_ARGS= --datadir=${PREFIX}/share/pks --localstatedir=/var/pks \ - --docdir=${PREFIX}/share/doc/pks --sysconfdir=${EXAMPLESDIR} \ - --libdir=${LOCALBASE}/lib --with-libwrap \ +CONFIGURE_ARGS= --datadir=${DATADIR} \ + --localstatedir=/var/pks \ + --with-libwrap \ --with-openssl=${OPENSSLBASE} MAKE_ENV+= SUBDIRS= LDFLAGS+= -L${LOCALBASE}/lib CONFIGURE_ENV= DBLIB="-L${BDB_LIB_DIR} -l${BDB_LIB_NAME}" \ DBINC=-I${BDB_INCLUDE_DIR} DBHDR=db.h SUB_FILES= pkg-message PKGMESSAGE= ${WRKDIR}/pkg-message -PLIST_SUB+= RESETPREFIX=${PREFIX} - USE_RC_SUBR= pksd post-extract: @${CP} -a ${FILESDIR}/EMAIL ${WRKSRC} post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/pgpsplit ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/pksdctl ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/pksclient ${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/pksd - ${INSTALL_DATA} ${WRKSRC}/pksd.conf ${STAGEDIR}${PREFIX}/etc/pksd.conf.sample - #${CHOWN} pksd:pksd /var/pks + ${MV} ${STAGEDIR}${PREFIX}/etc/pksd.conf ${STAGEDIR}${PREFIX}/etc/pksd.conf.sample post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR}/ cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/ .include diff --git a/security/pks/files/patch-configure.in b/security/pks/files/patch-configure similarity index 73% rename from security/pks/files/patch-configure.in rename to security/pks/files/patch-configure index 39a93721326d..ea4c6d634acb 100644 --- a/security/pks/files/patch-configure.in +++ b/security/pks/files/patch-configure @@ -1,129 +1,144 @@ ---- ./configure.in.orig 2004-01-18 00:19:56.000000000 +0100 -+++ ./configure.in 2014-08-15 18:32:37.000000000 +0200 -@@ -74,126 +74,6 @@ +--- configure.orig 2004-01-17 23:19:56 UTC ++++ configure +@@ -2530,141 +2530,6 @@ echo "${ECHO_T}Compiler Optimizations Enabled" >&6 + fi; + # Checks for libraries. - dnl Checks for Berkeley DB - AC_MSG_CHECKING(for Berkeley DB) --AC_ARG_WITH(db, --[ --with-db=DIR Use Berkeley DB in DIR], --[DBINC=NO +-echo "$as_me:$LINENO: checking for Berkeley DB" >&5 +-echo $ECHO_N "checking for Berkeley DB... $ECHO_C" >&6 +- +-# Check whether --with-db or --without-db was given. +-if test "${with_db+set}" = set; then +- withval="$with_db" +- DBINC=NO - DBLIB=NO - DBHDR=NO - S=1 - case "$withval" in - yes|no) -- AC_ERROR(Berkeley DB was not found. Please check your installation or use --with-db=PATH) +- { { echo "$as_me:$LINENO: error: Berkeley DB was not found. Please check your installation or use --with-db=PATH" >&5 +-echo "$as_me: error: Berkeley DB was not found. Please check your installation or use --with-db=PATH" >&2;} +- { (exit 1); exit 1; }; } - ;; - *) -- AC_MSG_RESULT($withval) +- echo "$as_me:$LINENO: result: $withval" >&5 +-echo "${ECHO_T}$withval" >&6 - if test x${withval} = x ; then - withval=/tmp - fi - if test $S -a -r ${withval}/build_unix/db4.h -a \ - -r "`ls ${withval}/build_unix/.libs/libdb-4.*.a 2>/dev/null | tail -1`"; then - DBINC=-I`echo ${withval}/build_unix/` - DBLIB=`ls ${withval}/build_unix/.libs/libdb-4.*.a 2>/dev/null | tail -1` - DBHDR="db4.h" - grep 'DB_VERSION_MAJOR 4$' ${withval}/build_unix/db4.h >/dev/null 2>&1 - S=$? - fi - if test $S -a -r ${withval}/build_unix/db.h -a \ - -r "`ls ${withval}/build_unix/.libs/libdb-4.*.a 2>/dev/null | tail -1`"; then - DBINC=-I`echo ${withval}/build_unix` - DBLIB=`ls ${withval}/build_unix/.libs/libdb-4.*.a 2>/dev/null | tail -1` - DBHDR="db.h" - grep 'DB_VERSION_MAJOR 4$' ${withval}/build_unix/db.h >/dev/null 2>&1 - S=$? - fi - if test $S -a -r ${withval}/include/db4/db.h -a \ - -r ${withval}/lib/db4/libdb.a ; then - DBINC="-I${withval}/include/db4" - DBLIB="-L${withval}/lib/db4 -ldb" - DBHDR="db.h" - grep 'DB_VERSION_MAJOR 4$' ${withval}/include/db4/db.h >/dev/null 2>&1 - S=$? - fi - if test $S -a -r ${withval}/include/db4.h -a \ - -r ${withval}/lib/libdb.a ; then - DBINC="-I${withval}/include" - DBLIB="-L${withval}/lib -ldb" - DBHDR="db4.h" - grep 'DB_VERSION_MAJOR 4$' ${withval}/include/db4.h >/dev/null 2>&1 - S=$? - fi - if test $S -a -r ${withval}/include/db.h -a \ - -r ${withval}/lib/libdb.a ; then - DBINC="-I${withval}/include" - DBLIB="-L${withval}/lib -ldb" - DBHDR="db.h" - grep 'DB_VERSION_MAJOR 4$' ${withval}/include/db.h >/dev/null 2>&1 - S=$? - fi - if test $S -eq 1 ; then -- AC_ERROR(Berkeley DB was not found. Please check your installation or use --with-db=DIR) +- { { echo "$as_me:$LINENO: error: Berkeley DB was not found. Please check your installation or use --with-db=DIR" >&5 +-echo "$as_me: error: Berkeley DB was not found. Please check your installation or use --with-db=DIR" >&2;} +- { (exit 1); exit 1; }; } - fi -- AC_MSG_RESULT(yes) -- esac ], --[DBINC=NO +- echo "$as_me:$LINENO: result: yes" >&5 +-echo "${ECHO_T}yes" >&6 +- esac +-else +- DBINC=NO - DBLIB=NO - DBHDR=NO - S=1 - - if test $S -a -r /usr/local/include/db4.h -a \ - -r /usr/local/lib/libdb.a ; then - DBINC="-I/usr/local/include" - DBLIB="-L/usr/local/lib -ldb" - DBHDR="db4.h" - grep 'DB_VERSION_MAJOR 4$' /usr/local/include/db4.h >/dev/null 2>&1 - S=$? - fi - if test $S -a -r /usr/local/include/db.h -a \ - -r /usr/local/lib/libdb.a ; then - DBINC="-I/usr/local/include" - DBLIB="-L/usr/local/lib -ldb" - DBHDR="db.h" - grep 'DB_VERSION_MAJOR 4$' /usr/local/include/db.h >/dev/null 2>&1 - S=$? - fi - if test $S -a -r /usr/include/db4.h -a \ - -r /usr/lib/libdb.a ; then - DBINC="" - DBLIB="-L/usr/lib -ldb" - DBHDR="db4.h" - grep 'DB_VERSION_MAJOR 4$' /usr/include/db4.h >/dev/null 2>&1 - S=$? - fi - if test $S -a -r /usr/include/db.h -a \ - -r /usr/lib/libdb.a ; then - DBINC="" - DBLIB="-L/usr/lib -ldb" - DBHDR="db.h" - grep 'DB_VERSION_MAJOR 4$' /usr/include/db.h >/dev/null 2>&1 - S=$? - fi - DIR=`ls -d ../db-4.*/. 2>/dev/null | tail -1` - if test $S -a -r ${DIR}/build_unix/db4.h -a \ - -r "`ls ${DIR}/build_unix/.libs/libdb-4.*.a 2>/dev/null | tail -1`"; then - DBINC=-I`echo ${DIR}/build_unix/` - DBLIB=`ls ${DIR}/build_unix/.libs/libdb-4.*.a 2>/dev/null | tail -1` - DBHDR="db4.h" - grep 'DB_VERSION_MAJOR 4$' ${DIR}/build_unix/db4.h >/dev/null 2>&1 - S=$? - fi - if test $S -a -r ${DIR}/build_unix/db.h -a \ - -r "`ls ${DIR}/build_unix/.libs/libdb-4.*.a 2>/dev/null | tail -1`"; then - DBINC=-I`echo ${DIR}/build_unix` - DBLIB=`ls ${DIR}/build_unix/.libs/libdb-4.*.a 2>/dev/null | tail -1` - DBHDR="db.h" - grep 'DB_VERSION_MAJOR 4$' ${DIR}/build_unix/db.h >/dev/null 2>&1 - S=$? - fi - - if test $S -eq 1 ; then -- AC_ERROR(Berkeley DB was not found. Please check your installation or use --with-db=DIR) +- { { echo "$as_me:$LINENO: error: Berkeley DB was not found. Please check your installation or use --with-db=DIR" >&5 +-echo "$as_me: error: Berkeley DB was not found. Please check your installation or use --with-db=DIR" >&2;} +- { (exit 1); exit 1; }; } - fi -- AC_MSG_RESULT(yes) ] --) - AC_SUBST(DBINC) - AC_SUBST(DBLIB) - AC_SUBST(DBHDR) +- echo "$as_me:$LINENO: result: yes" >&5 +-echo "${ECHO_T}yes" >&6 +- +-fi; + + + diff --git a/security/pks/pkg-install b/security/pks/pkg-install deleted file mode 100644 index ae5534f0e2ae..000000000000 --- a/security/pks/pkg-install +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ - -PKGNAME=$1 -STAGE=$2 - -case ${STAGE} in -PRE-INSTALL) - ;; -POST-INSTALL) - DBDIR=/var/pks/db - MAILDIR=/var/pks/incoming - - mkdir -p ${DBDIR} ${MAILDIR} - ;; -*) - echo "Unexpected argument: ${STAGE}" - exit 1 - ;; -esac -exit 0 diff --git a/security/pks/pkg-plist b/security/pks/pkg-plist index 2f92f2c9f896..a74ab5171c51 100644 --- a/security/pks/pkg-plist +++ b/security/pks/pkg-plist @@ -1,23 +1,22 @@ bin/pgpsplit bin/pks-mail.sh bin/pks-queue-run.sh bin/pksclient sbin/pksd bin/pksdctl -etc/pksd.conf.sample +@sample etc/pksd.conf.sample %%DATADIR%%/mail_intro %%DATADIR%%/pks-commands.html %%DATADIR%%/pks-commands.php -%%EXAMPLESDIR%%/pksd.conf man/man5/pksd.conf.5.gz man/man8/pgpsplit.8.gz man/man8/pks-intro.8.gz man/man8/pks-mail.sh.8.gz man/man8/pks-queue-run.sh.8.gz man/man8/pksclient.8.gz man/man8/pksd.8.gz man/man8/pksdctl.8.gz /var/pks/index.html @dir /var/pks/db @dir /var/pks/incoming @dir /var/pks