256c0ea000
as discussed with aja@
51 lines
1.3 KiB
Makefile
51 lines
1.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.66 2013/05/05 19:24:13 jasper Exp $
|
|
|
|
COMMENT= imap4 webmail client
|
|
|
|
DISTNAME= roundcubemail-0.9.0
|
|
REVISION= 1
|
|
PKGNAME= ${DISTNAME:S/-rc/rc/}
|
|
CATEGORIES= mail www
|
|
HOMEPAGE= http://www.roundcube.net/
|
|
|
|
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
|
|
|
|
# GPLv3+ with exceptions for skins & plugins
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=roundcubemail/}
|
|
EXTRACT_SUFX= .tar.gz
|
|
|
|
NO_BUILD= Yes
|
|
NO_TEST= Yes
|
|
PKG_ARCH= *
|
|
|
|
PREFIX= /var/www
|
|
INSTDIR= ${PREFIX}/roundcubemail
|
|
TINSTDIR= ${TRUEPREFIX}/roundcubemail
|
|
SUBST_VARS= INSTDIR TINSTDIR
|
|
|
|
MODULES= lang/php
|
|
RUN_DEPENDS= lang/php/${MODPHP_VERSION},-mcrypt \
|
|
lang/php/${MODPHP_VERSION},-pspell \
|
|
sysutils/pecl-fileinfo
|
|
|
|
do-configure:
|
|
perl -pi -e '$$. == 1 && s,^#!.*env.*php.*,#!${MODPHP_BIN},;' \
|
|
-e 'close ARGV if eof;' ${WRKSRC}/bin/*
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${INSTDIR}
|
|
cd ${WRKSRC} && pax -rw .* * ${INSTDIR}
|
|
.for i in .htaccess config/mimetypes.php
|
|
mv ${INSTDIR}/$i ${INSTDIR}/$i.dist
|
|
.endfor
|
|
@${SUBST_CMD} -c ${FILESDIR}/roundcubemail.conf \
|
|
${INSTDIR}/roundcubemail.conf.dist
|
|
chown -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR}; \
|
|
chgrp -R wheel ${INSTDIR}/bin; \
|
|
chmod -R o-rwx ${INSTDIR}/bin; \
|
|
find ${INSTDIR} \( -name \*.orig -or -name \*.src \) -exec rm -f {} +
|
|
|
|
.include <bsd.port.mk>
|