aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ftp/twoftpd/Makefile16
-rw-r--r--ftp/twoftpd/pkg-plist2
2 files changed, 10 insertions, 8 deletions
diff --git a/ftp/twoftpd/Makefile b/ftp/twoftpd/Makefile
index ab5d3e07c4b3..e4c4b8750b73 100644
--- a/ftp/twoftpd/Makefile
+++ b/ftp/twoftpd/Makefile
@@ -13,8 +13,7 @@ MASTER_SITES= http://untroubled.org/twoftpd/
MAINTAINER= gslin@ccca.nctu.edu.tw
COMMENT= A simple, secure, efficient FTP server
-BUILD_DEPENDS= ${LOCALBASE}/lib/libbg-str.a:${PORTSDIR}/devel/bglibs
-RUN_DEPENDS= ${BUILD_DEPENDS}
+BUILD_DEPENDS= ${LOCALBASE}/lib/libbg-unix.a:${PORTSDIR}/devel/bglibs
USE_REINPLACE= yes
@@ -23,14 +22,17 @@ MAN1= twoftpd-auth.1 twoftpd-xfer.1
BIN= twoftpd-anon twoftpd-anon-conf twoftpd-auth \
twoftpd-bind-port twoftpd-conf twoftpd-xfer
-post-patch:
- ${REINPLACE_CMD} -e 's,/usr/local/bglibs/,${LOCALBASE}/,' \
- ${WRKSRC}/conf-bgincs ${WRKSRC}/conf-bglibs
- ${REINPLACE_CMD} -e 's,/usr/local/,${PREFIX}/,' ${WRKSRC}/conf-bin
+do-configure:
+ ${ECHO_CMD} "${LOCALBASE}/include/bglibs" \
+ > ${WRKSRC}/conf-bgincs
+ ${ECHO_CMD} "${LOCALBASE}/lib" > ${WRKSRC}/conf-bglibs
+ ${ECHO_CMD} "${PREFIX}/sbin" > ${WRKSRC}/conf-bin
+ ${ECHO_CMD} "${MANPREFIX}/man" > ${WRKSRC}/conf-man
+ ${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
do-install:
.for FILE in ${MAN1}
- ${INSTALL_MAN} ${WRKSRC}/${FILE} ${PREFIX}/man/man1
+ ${INSTALL_MAN} ${WRKSRC}/${FILE} ${MANPREFIX}/man/man1
.endfor
.for FILE in ${BIN}
${INSTALL_PROGRAM} ${WRKSRC}/${FILE} ${PREFIX}/sbin
diff --git a/ftp/twoftpd/pkg-plist b/ftp/twoftpd/pkg-plist
index bbd17907cfb3..e7a34bddfb8f 100644
--- a/ftp/twoftpd/pkg-plist
+++ b/ftp/twoftpd/pkg-plist
@@ -1,4 +1,4 @@
-sbin/twoftpd-anon
+sbin/twoftpd-anon
sbin/twoftpd-anon-conf
sbin/twoftpd-auth
sbin/twoftpd-bind-port