Remove Perl core modules

- Add LICENSE
- Add NO_ARCH
- Sort USES
- Do not silence installation messages
- Regenerate patch file with makepatch:
- Bump PORTREVISION for dependency change
This commit is contained in:
sunpoet
2017-06-30 22:14:53 +00:00
parent 0951f4b86a
commit 51115c4e1c
2 changed files with 20 additions and 20 deletions
+9 -8
View File
@@ -3,7 +3,7 @@
PORTNAME= fsbackup
PORTVERSION= 1.2.1
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= sysutils
MASTER_SITES= http://www.opennet.ru/dev/fsbackup/src/
DISTNAME= fsbackup-1.2pl1
@@ -11,16 +11,17 @@ DISTNAME= fsbackup-1.2pl1
MAINTAINER= ports@FreeBSD.org
COMMENT= File system backup and synchronization utility
RUN_DEPENDS= p5-Net>=0:net/p5-Net
USES= shebangfix perl5
SHEBANG_FILES= contrib/*.pl \
*.pl
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
NO_ARCH= yes
NO_BUILD= yes
USES= perl5 shebangfix
SHEBANG_FILES= *.pl contrib/*.pl
do-install:
@cd ${WRKSRC};./install.pl --prefix=${PREFIX}/fsbackup --prefix-man=${MANPREFIX}/man/man1 --dest=${STAGEDIR}
@${RM} ${STAGEDIR}${PREFIX}/fsbackup/fsbackup.1
cd ${WRKSRC}; ./install.pl --prefix=${PREFIX}/fsbackup --prefix-man=${MANPREFIX}/man/man1 --dest=${STAGEDIR}
${RM} ${STAGEDIR}${PREFIX}/fsbackup/fsbackup.1
.include <bsd.port.mk>
+11 -12
View File
@@ -1,5 +1,5 @@
--- install.pl.orig 2014-08-07 10:15:08.515422863 +0800
+++ install.pl 2014-08-07 10:20:46.374398334 +0800
--- install.pl.orig 2005-01-14 10:54:36 UTC
+++ install.pl
@@ -23,10 +23,11 @@ $default_install_man = "/usr/local/man/m
#-----------------------------------------------------------------------
use Getopt::Long;
@@ -54,7 +54,15 @@
-system ("chmod 644 $prefix/VERSION");
-system ("cp -f fsbackup.1 $prefix/fsbackup.1");
-system ("chmod 644 $prefix/fsbackup.1");
-
+system ("cp -f FAQ $dest$prefix/FAQ");
+system ("chmod 644 $dest$prefix/FAQ");
+system ("cp -f README $dest$prefix/README");
+system ("chmod 644 $dest$prefix/README");
+system ("cp -f VERSION $dest$prefix/VERSION");
+system ("chmod 644 $dest$prefix/VERSION");
+system ("cp -f fsbackup.1 $dest$prefix/fsbackup.1");
+system ("chmod 644 $dest$prefix/fsbackup.1");
-copyfile("fsbackup.pl", "$prefix/fsbackup.pl");
-system ("chmod 711 $prefix/fsbackup.pl");
-copyfile("cfg_example", "$prefix/cfg_example");
@@ -73,15 +81,6 @@
-system ("chmod 711 $prefix/scripts/sysrestore.sh");
-copyfile("scripts/sqlite_backup.sh", "$prefix/scripts/sqlite_backup.sh");
-system ("chmod 711 $prefix/scripts/sqlite_backup.sh");
+system ("cp -f FAQ $dest$prefix/FAQ");
+system ("chmod 644 $dest$prefix/FAQ");
+system ("cp -f README $dest$prefix/README");
+system ("chmod 644 $dest$prefix/README");
+system ("cp -f VERSION $dest$prefix/VERSION");
+system ("chmod 644 $dest$prefix/VERSION");
+system ("cp -f fsbackup.1 $dest$prefix/fsbackup.1");
+system ("chmod 644 $dest$prefix/fsbackup.1");
+
+copyfile("fsbackup.pl", "$dest$prefix/fsbackup.pl");
+system ("chmod 711 $dest$prefix/fsbackup.pl");
+copyfile("cfg_example", "$dest$prefix/cfg_example");