1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

- Use $SUB_FILES to dynamically adjust pkg-message [1]

- Fix mysql commands in pkg-message.in, partially based on [1]
- Change MAINTAINER address from tota@rtfm.jp to tota@FreeBSD.org

PR:		ports/142732 [1]
Submitted by:	Sevan Janiyan <venture37_AT_geeklan.co.uk> [1]
Approved by:	maho (mentor)
This commit is contained in:
TAKATSU Tomonari 2010-02-09 14:58:53 +00:00
parent 3e0c1fc099
commit bdaca27c6e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=249480
2 changed files with 5 additions and 8 deletions

View File

@ -12,7 +12,7 @@ CATEGORIES= mail www
MASTER_SITES= SF/${PORTNAME}/IlohaMail-stable/${PORTVERSION}
DISTNAME= IlohaMail-${PORTVERSION}
MAINTAINER= tota@rtfm.jp
MAINTAINER= tota@FreeBSD.org
COMMENT= IlohaMail is a lightweight multilingual webmail program
NO_BUILD= yes
@ -33,7 +33,8 @@ ILOHADIR= ${PREFIX}/ilohamail
.endif
PLIST_SUB+= ILOHADIR="${ILOHADIR:S,^${PREFIX}/,,}"
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-message
SUB_LIST= ILOHADIR=${ILOHADIR}
pre-everything::
@${ECHO_MSG} ""
@ -55,10 +56,6 @@ do-install:
.endif
post-install:
@${SED} -e 's|%%ILOHADIR%%|${ILOHADIR}|g' \
-e 's|%%DATADIR%%|${DATADIR}|g' \
-e 's|%%DOCSDIR%%|${DOCSDIR}|g' \
< ${MASTERDIR}/pkg-message > ${PKGMESSAGE}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

View File

@ -27,10 +27,10 @@ Using the MySQL back-end is also recommended.
mysql> flush privileges;
2. Create a MySQL database.
$ mysqladmin create webmail
$ mysqladmin create webmail -u root -p
3. Create tables.
$ mysql webmail < %%DATADIR%%/MySQL/sql
$ mysql webmail < %%DATADIR%%/MySQL/sql -u root -p
4. Configure %%ILOHADIR%%/conf/db_conf.php.