[55134] trunk/dports/sysutils/backuppc/Portfile
jameskyle at macports.org
jameskyle at macports.org
Thu Aug 6 18:46:06 PDT 2009
Revision: 55134
http://trac.macports.org/changeset/55134
Author: jameskyle at macports.org
Date: 2009-08-06 18:46:05 -0700 (Thu, 06 Aug 2009)
Log Message:
-----------
master_sites changed to sourceforge
simplified the addgroup/adduser block
set distname and removed redundancy in distfiles/worksrcdir
set homepage, lint now passes
Modified Paths:
--------------
trunk/dports/sysutils/backuppc/Portfile
Modified: trunk/dports/sysutils/backuppc/Portfile
===================================================================
--- trunk/dports/sysutils/backuppc/Portfile 2009-08-07 01:43:20 UTC (rev 55133)
+++ trunk/dports/sysutils/backuppc/Portfile 2009-08-07 01:46:05 UTC (rev 55134)
@@ -5,12 +5,13 @@
categories sysutils
version 3.1.0
maintainers jameskyle
+homepage http://backuppc.sourceforge.net/
description BackupPC is a high-performance, enterprise-grade system for backing up Linux, WinXX and MacOSX PCs and laptops to a server's disk.
long_description ${description} BackupPC is highly configurable and easy to install and maintain.
platforms darwin
-master_sites sourceforge:${name}
+master_sites sourceforge
depends_lib port:perl5 \
port:p5-compress-zlib \
@@ -25,8 +26,8 @@
port:bzip2 \
port:par2
-
-distfiles BackupPC-${version}.tar.gz
+distname BackupPC-${version}
+
checksums md5 84b4471852ef910768eae9963ef932d2 \
sha1 3bd6d637f4f08f2fda44a12668b91d47c4abb0a7 \
rmd160 22d4cb6dd76f846fde489a301852f50e8db1ae1d
@@ -44,8 +45,6 @@
patchfiles patch-configure.pl.diff \
patch-lib-backuppc-cgi-view.pm.diff
-worksrcdir BackupPC-${version}
-
destroot.violate_mtree yes
destroot.keepdirs ${destroot}${prefix}/var/backups \
@@ -73,30 +72,9 @@
reinplace "s|@@PREFIX@@|${prefix}/|g" ${worksrcpath}/lib/BackupPC/CGI/View.pm
- if {[existsgroup "backuppc"]} {
- ui_debug "Found backuppc group."
- } else {
- ui_debug "Could not find backuppc group."
- ui_debug "Creating backuppc group."
- set gid [nextgid]
- ui_debug "gid: $gid"
- if {[catch {addgroup "backuppc" gid=${gid}}]} {
- return -code error "Failed to create backuppc group"
- }
- }
-
- ui_debug "Checking for backuppc user"
- if { [existsuser "backuppc"] } {
- ui_debug "Found backuppc user."
- } else {
- ui_debug "Could not find backuppc user."
- ui_debug "Creating backuppc user."
- set uid [nextuid]
- ui_debug "uid: $uid"
- if {[catch {adduser "backuppc" uid=${uid} gid=[existsgroup backuppc]}]} {
- return -code error "Failed to create backuppc user"
- }
- }
+ addgroup backuppc
+ set gid [existsgroup backuppc]
+ adduser backuppc gid=${gid} realname=BackupPC
}
build {}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090806/b4395308/attachment-0001.html>
More information about the macports-changes
mailing list