aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorpat <pat@FreeBSD.org>2002-05-23 06:18:34 +0800
committerpat <pat@FreeBSD.org>2002-05-23 06:18:34 +0800
commit34f8ba4aaa28087a6b414091de08c99a151723d8 (patch)
tree491ac185b2c8e0a10400e4d0c0aa1bfe8e014a3b /mail
parent1c6443eba3a2150a9fee6e08debc628ce85ba26f (diff)
downloadfreebsd-ports-gnome-34f8ba4aaa28087a6b414091de08c99a151723d8.tar.gz
freebsd-ports-gnome-34f8ba4aaa28087a6b414091de08c99a151723d8.tar.zst
freebsd-ports-gnome-34f8ba4aaa28087a6b414091de08c99a151723d8.zip
- Correct PREFIX/LOCALBASE
- Install with apache2 - add pkg-message - Add PHP disclaimer for IMAP support and register_globals PR: 38367 Submitted by: maintainer
Diffstat (limited to 'mail')
-rw-r--r--mail/nocc/Makefile35
-rw-r--r--mail/nocc/pkg-message6
-rw-r--r--mail/nocc/pkg-plist4
3 files changed, 29 insertions, 16 deletions
diff --git a/mail/nocc/Makefile b/mail/nocc/Makefile
index 0377321fbf71..0a7426ce1e16 100644
--- a/mail/nocc/Makefile
+++ b/mail/nocc/Makefile
@@ -13,31 +13,36 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= sysadmin@alexdupre.com
-LIB_DEPENDS= c-client4.8:${PORTSDIR}/mail/cclient
-RUN_DEPENDS= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4
+RUN_DEPENDS= ${LOCALBASE}/bin/php-config:${PORTSDIR}/www/mod_php4
NO_BUILD= yes
+pre-everything:
+ @${ECHO} ""
+ @${ECHO} "You have to configure PHP with IMAP support in order"
+ @${ECHO} "to let Nocc connect to your POP3/IMAP server."
+ @${ECHO} ""
+ @${ECHO} "If you have already compiled PHP without IMAP,"
+ @${ECHO} "press CTRL+C now and rebuild it before installing Nocc."
+ @${ECHO} ""
+
do-install:
- ${MKDIR} ${LOCALBASE}/www/nocc
+ ${MKDIR} ${PREFIX}/www/nocc
${CP} -Rp ${WRKSRC}/html ${WRKSRC}/lang ${WRKSRC}/themes \
- ${LOCALBASE}/www/nocc
- ${CP} -p ${WRKSRC}/*.php ${LOCALBASE}/www/nocc
- ${CP} -p ${WRKSRC}/conf.php.dist ${LOCALBASE}/www/nocc/conf.php
- ${CHOWN} -R www:www ${LOCALBASE}/www/nocc
+ ${PREFIX}/www/nocc
+ ${CP} -p ${WRKSRC}/*.php ${PREFIX}/www/nocc
+ ${CP} -p ${WRKSRC}/conf.php.dist ${PREFIX}/www/nocc
+ @if [ ! -f ${PREFIX}/www/nocc/conf.php ]; then \
+ ${CP} ${PREFIX}/www/nocc/conf.php.dist \
+ ${PREFIX}/www/nocc/conf.php; \
+ fi
+ ${CHOWN} -R www:www ${PREFIX}/www/nocc
.if !defined(NOPORTDOCS)
${INSTALL} -d -o ${DOCOWN} -g ${DOCGRP} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}
.endif
post-install:
- @${ECHO} "****************************************************************"
- @${ECHO} "Nocc has been installed in ${LOCALBASE}/www/nocc directory."
- @${ECHO} "Change into this directory and make changes to the config"
- @${ECHO} "file (conf.php). The file is fairly well documented."
-.if !defined(NOPORTDOCS)
- @${ECHO} "All documentation has been located in ${DOCSDIR}."
-.endif
- @${ECHO} "****************************************************************"
+ @${SED} 's|%%PREFIX%%|${PREFIX}|' ${PKGMESSAGE}
.include <bsd.port.mk>
diff --git a/mail/nocc/pkg-message b/mail/nocc/pkg-message
new file mode 100644
index 000000000000..6186a0d5561e
--- /dev/null
+++ b/mail/nocc/pkg-message
@@ -0,0 +1,6 @@
+****************************************************************
+Nocc has been installed in %%PREFIX%%/www/nocc directory.
+Change into this directory and make changes to the config
+file (conf.php). The file is fairly well documented.
+Also be sure that register_globals = On in the Nocc directory.
+****************************************************************
diff --git a/mail/nocc/pkg-plist b/mail/nocc/pkg-plist
index fdf53094bbdf..9c9e338769a6 100644
--- a/mail/nocc/pkg-plist
+++ b/mail/nocc/pkg-plist
@@ -3,7 +3,9 @@ www/nocc/check.php
www/nocc/check_lang.php
www/nocc/class_send.php
www/nocc/class_smtp.php
-www/nocc/conf.php
+@unexec if cmp -s %D/www/nocc/conf.php %D/www/nocc/conf.php.dist; then rm -f %D/www/nocc/conf.php; fi
+www/nocc/conf.php.dist
+@exec [ -f %B/conf.php ] || cp %B/%f %B/conf.php
www/nocc/conf_lang.php
www/nocc/delete.php
www/nocc/download.php