1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

- Be more friendly for package

- Bump PORTREVISION to build new package

PR:		ports/115862
Submitted by:	Nick Hilliard <nick at foobar.org> (maintainer)
This commit is contained in:
Rong-En Fan 2007-09-05 14:53:58 +00:00
parent 044628c13e
commit addebf1f7b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=198847
5 changed files with 38 additions and 17 deletions

View File

@ -7,7 +7,8 @@
PORTNAME= flyspray
PORTVERSION= 0.9.9.2
CATEGORIES= devel
PORTREVISION= 1
CATEGORIES= devel www
MASTER_SITES= http://www.flyspray.org/
MAINTAINER= nick@foobar.org
@ -35,12 +36,19 @@ DOC_FILES= AUTHORS.txt BUGS.txt CHANGELOG.txt INSTALL.txt \
licences/NuvolaIcons.licence.txt \
licences/jsCalendar.licence.txt
FLYSPRAY_FILES= cache docs/licences/gnu_lgpl.html \
favicon.ico feed.php header.php htaccess.dist includes \
index.php javascript lang plugins robots.txt schedule.php \
scripts setup templates themes
FLYSPRAY_FILES= cache docs/licences/gnu_lgpl.html favicon.ico \
flyspray.conf.php-dist feed.php header.php htaccess.dist \
includes index.php javascript lang plugins robots.txt \
schedule.php scripts setup templates themes
SUB_FILES= pkg-message
SUB_FILES+= pkg-message pkg-install
SUB_LIST+= FLYSPRAYDIR="${FLYSPRAYDIR}" \
ATTACHMENTDIR="${ATTACHMENTDIR}" \
MKDIR="${MKDIR}" \
CHOWN="${CHOWN}" \
CHMOD="${CHMOD}" \
WWWGRP="${WWWGRP}" \
WWWOWN="${WWWOWN}"
.include <bsd.port.pre.mk>
@ -56,19 +64,16 @@ post-patch:
@${FIND} ${WRKSRC} -name \*.orig -exec ${RM} '{}' ';'
do-install:
@${MKDIR} ${FLYSPRAYDIR}
${MKDIR} ${FLYSPRAYDIR}
${CHMOD} 755 ${FLYSPRAYDIR}
${TOUCH} ${FLYSPRAYDIR}/flyspray.conf.php
${CP} ${WRKSRC}/setup/upgrade/${PORTVERSION}/flyspray.conf.php ${WRKSRC}/flyspray.conf.php-dist
cd ${WRKSRC} && \
${TAR} cf - ${FLYSPRAY_FILES} | \
(cd ${FLYSPRAYDIR} && ${TAR} -xf -)
${LN} -s ${ATTACHMENTDIR} ${FLYSPRAYDIR}/attachments
${LN} -s ${PREFIX}/share/adodb ${FLYSPRAYDIR}
@${MKDIR} ${ATTACHMENTDIR}
${CHMOD} 750 ${ATTACHMENTDIR}
${CHOWN} ${WWWOWN}:${WWWGRP} ${ATTACHMENTDIR}
${CHOWN} ${WWWOWN}:${WWWGRP} ${FLYSPRAYDIR}/cache
${CHOWN} ${WWWOWN}:${WWWGRP} ${FLYSPRAYDIR}/flyspray.conf.php
PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
post-install: install-doc
@${CAT} ${PKGMESSAGE}

View File

@ -20,8 +20,13 @@ Configuration Instructions for Flyspray
Allow from all
</Directory>
3) Point your browser to http://yourserver.example.com/flyspray/ and you should
see the Flyspray installer.
3) If this is a new Flyspray installation, install the default configuration
file and edit to taste:
# cp %%FLYSPRAYDIR%%/flyspray.conf.php-dist %%FLYSPRAYDIR%%/flyspray.conf.php
Then point your browser to http://yourserver.example.com/flyspray/ and
you should see the Flyspray installer.
4) Once the setup procedure has been completed, you must remove the "setup"
directory:

View File

@ -0,0 +1,13 @@
#!/bin/sh
#
# $FreeBSD$
case $2 in
POST-INSTALL)
if [ ! -d %%ATTACHMENTDIR%% ]; then
%%MKDIR%% %%ATTACHMENTDIR%%
fi
%%CHMOD%% 750 %%ATTACHMENTDIR%%
%%CHOWN%% %%WWWOWN%%:%%WWWGRP%% %%ATTACHMENTDIR%%
;;
esac

View File

@ -2,8 +2,6 @@
case $2 in
DEINSTALL)
# /bin/rm -f ${PKG_PREFIX}/share/flyspray/flyspray.conf.php
# /bin/rmdir ${PKG_PREFIX}/share/flyspray/
echo "--"
echo "The Flyspray program has been deleted but the bug tracking database has"
echo "not been touched. To delete all the bug tracking information, execute the"

View File

@ -6,7 +6,7 @@
%%DATADIR%%/feed.php
%%DATADIR%%/header.php
%%DATADIR%%/htaccess.dist
%%DATADIR%%/flyspray.conf.php
%%DATADIR%%/flyspray.conf.php-dist
%%DATADIR%%/includes/.htaccess
%%DATADIR%%/includes/class.backend.php
%%DATADIR%%/includes/class.database.php