diff options
author | Vanilla I. Shu <vanilla@FreeBSD.org> | 2014-08-14 14:56:13 +0000 |
---|---|---|
committer | Vanilla I. Shu <vanilla@FreeBSD.org> | 2014-08-14 14:56:13 +0000 |
commit | b6228768e4c440b85e8f83f269187e41fc593491 (patch) | |
tree | d5dc4dd5603bcfb45606c55e95a5cd802c39a13e /ftp | |
parent | - Remove redundant run/build from USES_PERL5 (diff) |
1: Stagify.
2: add LICENSE.
3: use @sample, bump version.
Notes
Notes:
svn path=/head/; revision=364846
Diffstat (limited to 'ftp')
-rw-r--r-- | ftp/net2ftp/Makefile | 23 | ||||
-rw-r--r-- | ftp/net2ftp/pkg-plist-chunk | 12 |
2 files changed, 11 insertions, 24 deletions
diff --git a/ftp/net2ftp/Makefile b/ftp/net2ftp/Makefile index 5d7b2489f4f9..033d379ae2ea 100644 --- a/ftp/net2ftp/Makefile +++ b/ftp/net2ftp/Makefile @@ -3,6 +3,7 @@ PORTNAME= net2ftp PORTVERSION= 0.98 +PORTREVISION= 1 CATEGORIES= ftp MASTER_SITES= http://www.net2ftp.com/download/ DISTNAME= ${PORTNAME}_v${PORTVERSION} @@ -10,6 +11,8 @@ DISTNAME= ${PORTNAME}_v${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= PHP scripts to work with ftp +LICENSE= GPLv2 + USES= zip NO_BUILD= YES .if !defined(WITHOUT_PHP_DEPENDS) @@ -27,7 +30,6 @@ SUB_FILES+= pkg-message # When creating a package, empty directories will not be generated # from the pkg tarball. Therefore make sure no directories are empty. -NO_STAGE= yes post-patch: @cd ${WRKSRC}/files_to_upload ; \ for emptydir in $$( ${FIND} . -type d -empty -print ) ; do \ @@ -48,25 +50,16 @@ install-app: for src in $$( ${FIND} . ! -name "settings*.inc.php" ) ; do \ dst=${WWWDIR}$${src#.} ; \ if ${TEST} -d $$src ; then \ - ${MKDIR} $$dst ; \ + ${MKDIR} ${STAGEDIR}$$dst ; \ else \ - ${INSTALL_DATA} $$src $$dst ; \ + ${INSTALL_DATA} $$src ${STAGEDIR}$$dst ; \ fi \ done install-conf: install-app @cd ${WRKSRC}/files_to_upload ; \ - ${INSTALL_DATA} settings.inc.php ${WWWDIR}/settings.inc.php.sample ; \ - ${INSTALL_DATA} settings_authorizations.inc.php ${WWWDIR}/settings_authorizations.inc.php.sample ; \ - ${INSTALL_DATA} settings_screens.inc.php ${WWWDIR}/settings_screens.inc.php.sample - @cd ${WWWDIR} ; \ - for CFGFILE in ${CFGFILES} ; do \ - if ${TEST} ! -f $${CFGFILE} ; then \ - ${CP} -p $${CFGFILE}.sample $${CFGFILE} ; \ - fi \ - done - -post-install: - @${CAT} ${PKGMESSAGE} + ${INSTALL_DATA} settings.inc.php ${STAGEDIR}${WWWDIR}/settings.inc.php.sample ; \ + ${INSTALL_DATA} settings_authorizations.inc.php ${STAGEDIR}${WWWDIR}/settings_authorizations.inc.php.sample ; \ + ${INSTALL_DATA} settings_screens.inc.php ${STAGEDIR}${WWWDIR}/settings_screens.inc.php.sample .include <bsd.port.mk> diff --git a/ftp/net2ftp/pkg-plist-chunk b/ftp/net2ftp/pkg-plist-chunk index 4be6ca78b7ef..0c8d913136da 100644 --- a/ftp/net2ftp/pkg-plist-chunk +++ b/ftp/net2ftp/pkg-plist-chunk @@ -1,9 +1,3 @@ -@unexec if cmp -s %D/%%WWWDIR%%/settings.inc.php.sample %D/%%WWWDIR%%/settings.inc.php ; then rm -f %D/%%WWWDIR%%/settings.inc.php ; fi -%%WWWDIR%%/settings.inc.php.sample -@exec [ ! -f %B/settings.inc.php ] && cp -p %B/%f %B/settings.inc.php || true -@unexec if cmp -s %D/%%WWWDIR%%/settings_authorizations.inc.php.sample %D/%%WWWDIR%%/settings_authorizations.inc.php ; then rm -f %D/%%WWWDIR%%/settings_authorizations.inc.php ; fi -%%WWWDIR%%/settings_authorizations.inc.php.sample -@exec [ ! -f %B/settings_authorizations.inc.php ] && cp -p %B/%f %B/settings_authorizations.inc.php || true -@unexec if cmp -s %D/%%WWWDIR%%/settings_screens.inc.php.sample %D/%%WWWDIR%%/settings_screens.inc.php ; then rm -f %D/%%WWWDIR%%/settings_screens.inc.php ; fi -%%WWWDIR%%/settings_screens.inc.php.sample -@exec [ ! -f %B/settings_screens.inc.php ] && cp -p %B/%f %B/settings_screens.inc.php || true +@sample %%WWWDIR%%/settings.inc.php.sample +@sample %%WWWDIR%%/settings_authorizations.inc.php.sample +@sample %%WWWDIR%%/settings_screens.inc.php.sample |