aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/horde4-mnemo
diff options
context:
space:
mode:
Diffstat (limited to 'deskutils/horde4-mnemo')
-rw-r--r--deskutils/horde4-mnemo/Makefile42
-rw-r--r--deskutils/horde4-mnemo/files/httpd.conf.mnemo31
-rw-r--r--deskutils/horde4-mnemo/files/pkg-message.in1
-rw-r--r--deskutils/horde4-mnemo/pkg-plist10
4 files changed, 18 insertions, 66 deletions
diff --git a/deskutils/horde4-mnemo/Makefile b/deskutils/horde4-mnemo/Makefile
index ff7db16930ab..ba9327b1d2e5 100644
--- a/deskutils/horde4-mnemo/Makefile
+++ b/deskutils/horde4-mnemo/Makefile
@@ -7,6 +7,7 @@
PORTNAME= mnemo
PORTVERSION= 2.1.1
+DISTVERSIONPREFIX= h3-
PORTREVISION= 1
CATEGORIES= deskutils www
MASTER_SITES= HORDE
@@ -18,18 +19,17 @@ COMMENT= Mnemo is the Horde notes and memos application
RUN_DEPENDS= ${LOCALBASE}/${LHORDEDIR}/rpc.php:${PORTSDIR}/www/horde-base
NO_BUILD= yes
-USE_APACHE= 1.3+ # needed to test APACHE_VERSION
USE_GETTEXT= yes
-PLIST_SUB= MNEMODIR=${LMNEMODIR} HORDE_INC=${HORDE_INC:S|^${LOCALBASE}/||}
+PLIST_SUB= MNEMODIR=${LMNEMODIR}
PKGMESSAGE= ${WRKDIR}/pkg-message
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
SUB_FILES= pkg-message pkg-install pkg-deinstall
SUB_LIST= MNEMODIR=${MNEMODIR}
REINPLACE_ARGS= -i ""
-DOCS= LICENSE README docs/CHANGES docs/CREDITS docs/INSTALL \
- docs/RELEASE_NOTES docs/TODO docs/UPGRADING
+PORTDOCS= README CHANGES CREDITS INSTALL \
+ RELEASE_NOTES TODO UPGRADING
CONFFILE= prefs.php
SUB_DIRS= config js lib locale po scripts templates themes
@@ -41,34 +41,28 @@ CONFDIR= ${MNEMODIR}/config
.include <bsd.port.pre.mk>
-.if ${APACHE_VERSION} >= 20
-HORDE_INC= ${LOCALBASE}/etc/apache${APACHE_VERSION:S/20/2/}/Includes
-.else
-HORDE_INC= ${LOCALBASE}/etc/horde
-.endif
+post-extract:
+ @${MV} ${WRKSRC}/README ${WRKSRC}/docs/
pre-configure:
@(cd ${WRKSRC}/scripts && \
${FIND} . -name "*.php" -exec \
${REINPLACE_CMD} -e "s:/usr/local/bin/php: ${LOCALBASE}/bin/php:;s:/usr/bin/php: ${LOCALBASE}/bin/php:" {} \; )
- @${SED} -e "s:/home/httpd/html/horde/mnemo:${MNEMODIR}:g" \
- ${FILESDIR}/httpd.conf.mnemo > ${WRKDIR}/httpd-mnemo.conf
do-install:
- @${MKDIR} ${MNEMODIR}
-.for REP in ${SUB_DIRS}
- @${CP} -Rp ${WRKSRC}/${REP} ${MNEMODIR}
-.endfor
- @${CP} -p ${WRKSRC}/*.php ${MNEMODIR}
-
- @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${MNEMODIR}
- @${CHMOD} -R o-rwx ${CONFDIR}
- @${INSTALL_DATA} ${WRKDIR}/httpd-mnemo.conf ${HORDE_INC}
+ @${INSTALL} -d ${MNEMODIR}/
+ @${CP} -Rp ${SUB_DIRS:S|^|${WRKSRC}/|} ${MNEMODIR}/
+ @${CP} -p ${WRKSRC}/*.php ${MNEMODIR}/
+ @${INSTALL_DATA} ${WRKSRC}/config/conf.xml ${CONFDIR}/
+ @${CHOWN} -R ${WWWOWN}:${WWWGRP} ${MNEMODIR}/
+ @${CHMOD} -R o-rwx ${MNEMODIR}/
+ ${ECHO_CMD} @exec ${CHOWN} -R ${WWWOWN}:${WWWGRP}\
+ %D/${MNEMODIR:S|^${PREFIX}/||}/ >> ${TMPPLIST}
+ ${ECHO_CMD} @exec ${CHMOD} -R o-rwx\
+ %D/${MNEMODIR:S|^${PREFIX}/||}/ >> ${TMPPLIST}
.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
-.for FILE in ${DOCS}
- @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
-.endfor
+ @${INSTALL} -d ${DOCSDIR}/
+ @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/docs/|} ${DOCSDIR}/
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif
diff --git a/deskutils/horde4-mnemo/files/httpd.conf.mnemo b/deskutils/horde4-mnemo/files/httpd.conf.mnemo
deleted file mode 100644
index c87a3b7ef1c1..000000000000
--- a/deskutils/horde4-mnemo/files/httpd.conf.mnemo
+++ /dev/null
@@ -1,31 +0,0 @@
-# This is included in Apache's httpd.conf for Mnemo
-#
-# For security, don't serve pages from the Mnemo configuration and
-# library directories.
-#
-<Directory "/home/httpd/html/horde/mnemo/config">
- order deny,allow
- deny from all
-</Directory>
-<Directory "/home/httpd/html/horde/mnemo/lib">
- order deny,allow
- deny from all
-</Directory>
-<Directory "/home/httpd/html/horde/mnemo/locale">
- order deny,allow
- deny from all
-</Directory>
-<Directory "/home/httpd/html/horde/mnemo/po">
- order deny,allow
- deny from all
-</Directory>
-<Directory "/home/httpd/html/horde/mnemo/scripts">
- order deny,allow
- deny from all
-</Directory>
-<Directory "/home/httpd/html/horde/mnemo/templates">
- order deny,allow
- deny from all
-</Directory>
-# End of Mnemo configuration ================
-
diff --git a/deskutils/horde4-mnemo/files/pkg-message.in b/deskutils/horde4-mnemo/files/pkg-message.in
index db86ecf84943..bbd8d585a94d 100644
--- a/deskutils/horde4-mnemo/files/pkg-message.in
+++ b/deskutils/horde4-mnemo/files/pkg-message.in
@@ -12,5 +12,4 @@ mysql --user=root --password=yourpass horde < mnemo.sql
Finally, you must login to Horde as a Horde Administrator to finish the
configuration.
-To protect your configuration files, you have to restart Apache.
************************************************************************
diff --git a/deskutils/horde4-mnemo/pkg-plist b/deskutils/horde4-mnemo/pkg-plist
index 8d1f006ae5d8..1812bb6810af 100644
--- a/deskutils/horde4-mnemo/pkg-plist
+++ b/deskutils/horde4-mnemo/pkg-plist
@@ -1,12 +1,3 @@
-%%HORDE_INC%%/httpd-mnemo.conf
-%%PORTDOCS%%%%DOCSDIR%%/LICENSE
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/RELEASE_NOTES
-%%PORTDOCS%%%%DOCSDIR%%/CHANGES
-%%PORTDOCS%%%%DOCSDIR%%/CREDITS
-%%PORTDOCS%%%%DOCSDIR%%/INSTALL
-%%PORTDOCS%%%%DOCSDIR%%/TODO
-%%PORTDOCS%%%%DOCSDIR%%/UPGRADING
%%MNEMODIR%%/config/.htaccess
%%MNEMODIR%%/config/conf.xml
%%MNEMODIR%%/config/prefs.php.dist
@@ -122,7 +113,6 @@
%%MNEMODIR%%/themes/graphics/za.png
%%MNEMODIR%%/themes/screen.css
%%MNEMODIR%%/view.php
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm %%MNEMODIR%%/themes/graphics
@dirrm %%MNEMODIR%%/themes
@dirrm %%MNEMODIR%%/templates/view