Date: Thu, 7 Aug 2014 02:22:48 +0000 (UTC) From: Vanilla I. Shu <vanilla@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r364243 - in head/sysutils/fsbackup: . files Message-ID: <53e2e2f8.5df9.104ecdc6@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: vanilla Date: Thu Aug 7 02:22:47 2014 New Revision: 364243 URL: http://svnweb.freebsd.org/changeset/ports/364243 QAT: https://qat.redports.org/buildarchive/r364243/ Log: Stagify. Added: head/sysutils/fsbackup/files/ head/sysutils/fsbackup/files/patch-install.pl (contents, props changed) Modified: head/sysutils/fsbackup/Makefile head/sysutils/fsbackup/pkg-plist Modified: head/sysutils/fsbackup/Makefile ============================================================================== --- head/sysutils/fsbackup/Makefile Thu Aug 7 02:05:34 2014 (r364242) +++ head/sysutils/fsbackup/Makefile Thu Aug 7 02:22:47 2014 (r364243) @@ -17,15 +17,11 @@ USES= shebangfix perl5 SHEBANG_FILES= contrib/*.pl \ *.pl -MAN1= fsbackup.1 -MANCOMPRESSED= no - NO_BUILD= yes NO_INSTALL_MANPAGES=yes -NO_STAGE= yes do-install: - @cd ${WRKSRC};./install.pl --prefix=${PREFIX}/fsbackup --prefix-man=${MANPREFIX}/man/man1 - @${RM} ${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> Added: head/sysutils/fsbackup/files/patch-install.pl ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/fsbackup/files/patch-install.pl Thu Aug 7 02:22:47 2014 (r364243) @@ -0,0 +1,105 @@ +--- install.pl.orig 2014-08-07 10:15:08.515422863 +0800 ++++ install.pl 2014-08-07 10:20:46.374398334 +0800 +@@ -23,10 +23,11 @@ $default_install_man = "/usr/local/man/m + #----------------------------------------------------------------------- + use Getopt::Long; + +-GetOptions("prefix=s", \$prefix, "prefix-man=s", \$prefix_man); ++GetOptions("prefix=s", \$prefix, "prefix-man=s", \$prefix_man, "dest=s", \$dest); + + $prefix = defined($prefix) ? $prefix : $default_install_path; + $prefix_man = defined($prefix_man) ? $prefix_man : $default_install_man; ++$dest = defined($dest) ? $dest : ""; + print "Installing to $prefix (man to $prefix_man)\n"; + + chomp($prog_md5sum = `which md5sum`); +@@ -47,51 +48,51 @@ chomp($backup_name = `uname -n|tr '.' '_ + print "Makeing man page...\n"; + system ("pod2man fsbackup.pl > fsbackup.1"); + print "Installing man page to $prefix_man...\n"; +-system ("cp -f fsbackup.1 $prefix_man/fsbackup.1"); +-system ("chmod 644 $prefix_man/fsbackup.1"); ++system ("cp -f fsbackup.1 $dest$prefix_man/fsbackup.1"); ++system ("chmod 644 $dest$prefix_man/fsbackup.1"); + + print "Creation directory tree in $prefix...\n"; + +-if (! -d $prefix){ +- system ("mkdir $prefix"); +- system ("chmod 755 $prefix"); ++if (! -d "$dest$prefix") { ++ system ("mkdir $dest$prefix"); ++ system ("chmod 755 $dest$prefix"); + } +-system ("mkdir $prefix/cache"); +-system ("chmod 700 $prefix/cache"); +-system ("mkdir $prefix/scripts"); +-system ("chmod 700 $prefix/scripts"); +-system ("mkdir $prefix/sys_backup"); +-system ("chmod 700 $prefix/sys_backup"); ++system ("mkdir $dest$prefix/cache"); ++system ("chmod 700 $dest$prefix/cache"); ++system ("mkdir $dest$prefix/scripts"); ++system ("chmod 700 $dest$prefix/scripts"); ++system ("mkdir $dest$prefix/sys_backup"); ++system ("chmod 700 $dest$prefix/sys_backup"); + + print "Installing fsbackup in $prefix...\n"; + +-system ("cp -f FAQ $prefix/FAQ"); +-system ("chmod 644 $prefix/FAQ"); +-system ("cp -f README $prefix/README"); +-system ("chmod 644 $prefix/README"); +-system ("cp -f VERSION $prefix/VERSION"); +-system ("chmod 644 $prefix/VERSION"); +-system ("cp -f fsbackup.1 $prefix/fsbackup.1"); +-system ("chmod 644 $prefix/fsbackup.1"); +- +-copyfile("fsbackup.pl", "$prefix/fsbackup.pl"); +-system ("chmod 711 $prefix/fsbackup.pl"); +-copyfile("cfg_example", "$prefix/cfg_example"); +-system ("chmod 600 $prefix/cfg_example"); +-copyfile("create_backup.sh", "$prefix/create_backup.sh"); +-system ("chmod 711 $prefix/create_backup.sh"); +-copyfile("scripts/mysql_backup.sh", "$prefix/scripts/mysql_backup.sh"); +-system ("chmod 711 $prefix/scripts/mysql_backup.sh"); +-copyfile("scripts/sysbackup.sh", "$prefix/scripts/sysbackup.sh"); +-system ("chmod 711 $prefix/scripts/sysbackup.sh"); +-copyfile("scripts/fsrestore.sh", "$prefix/scripts/fsrestore.sh"); +-system ("chmod 711 $prefix/scripts/fsrestore.sh"); +-copyfile("scripts/pgsql_backup.sh", "$prefix/scripts/pgsql_backup.sh"); +-system ("chmod 711 $prefix/scripts/pgsql_backup.sh"); +-copyfile("scripts/sysrestore.sh", "$prefix/scripts/sysrestore.sh"); +-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"); ++system ("chmod 600 $dest$prefix/cfg_example"); ++copyfile("create_backup.sh", "$dest$prefix/create_backup.sh"); ++system ("chmod 711 $dest$prefix/create_backup.sh"); ++copyfile("scripts/mysql_backup.sh", "$dest$prefix/scripts/mysql_backup.sh"); ++system ("chmod 711 $dest$prefix/scripts/mysql_backup.sh"); ++copyfile("scripts/sysbackup.sh", "$dest$prefix/scripts/sysbackup.sh"); ++system ("chmod 711 $dest$prefix/scripts/sysbackup.sh"); ++copyfile("scripts/fsrestore.sh", "$dest$prefix/scripts/fsrestore.sh"); ++system ("chmod 711 $dest$prefix/scripts/fsrestore.sh"); ++copyfile("scripts/pgsql_backup.sh", "$dest$prefix/scripts/pgsql_backup.sh"); ++system ("chmod 711 $dest$prefix/scripts/pgsql_backup.sh"); ++copyfile("scripts/sysrestore.sh", "$dest$prefix/scripts/sysrestore.sh"); ++system ("chmod 711 $dest$prefix/scripts/sysrestore.sh"); ++copyfile("scripts/sqlite_backup.sh", "$dest$prefix/scripts/sqlite_backup.sh"); ++system ("chmod 711 $dest$prefix/scripts/sqlite_backup.sh"); + + print "* If you system not support MD5, please manually install module ./modules/Digest-Perl-MD5-1.5.tar.gz\n"; + print "* If Berkeley DB not installed and failed compilation of DB_File-1.77.tar.gz, please manually install DB from http://www.sleepycat.com.\n"; Modified: head/sysutils/fsbackup/pkg-plist ============================================================================== --- head/sysutils/fsbackup/pkg-plist Thu Aug 7 02:05:34 2014 (r364242) +++ head/sysutils/fsbackup/pkg-plist Thu Aug 7 02:22:47 2014 (r364243) @@ -10,6 +10,7 @@ fsbackup/scripts/pgsql_backup.sh fsbackup/scripts/sysbackup.sh fsbackup/scripts/sysrestore.sh fsbackup/scripts/sqlite_backup.sh +man/man1/fsbackup.1.gz @dirrm fsbackup/scripts @dirrm fsbackup/cache @dirrm fsbackup/sys_backup
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53e2e2f8.5df9.104ecdc6>