[129022] trunk/dports/net/sendpage/Portfile
devans at macports.org
devans at macports.org
Wed Dec 3 08:57:51 PST 2014
Revision: 129022
https://trac.macports.org/changeset/129022
Author: devans at macports.org
Date: 2014-12-03 08:57:50 -0800 (Wed, 03 Dec 2014)
Log Message:
-----------
sendpage: add mode line and retab, white space only.
Modified Paths:
--------------
trunk/dports/net/sendpage/Portfile
Modified: trunk/dports/net/sendpage/Portfile
===================================================================
--- trunk/dports/net/sendpage/Portfile 2014-12-03 16:29:56 UTC (rev 129021)
+++ trunk/dports/net/sendpage/Portfile 2014-12-03 16:57:50 UTC (rev 129022)
@@ -1,36 +1,38 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$
-PortSystem 1.0
+PortSystem 1.0
-name sendpage
-version 1.000003
-revision 1
-categories net
-maintainers nomaintainer
-platforms darwin
+name sendpage
+version 1.000003
+revision 1
+categories net
+maintainers nomaintainer
+platforms darwin
-description Sendpage sends alphanumeric pages via a modem, receives via SNPP
+description Sendpage sends alphanumeric pages via a modem, receives via SNPP
-long_description An SNPP client, SNPP server, a queuing engine, \
- a modem control engine, a TAP communication system, \
- and an email notification system.
+long_description An SNPP client, SNPP server, a queuing engine, \
+ a modem control engine, a TAP communication system, \
+ and an email notification system.
-homepage http://www.sendpage.org/
+homepage http://www.sendpage.org/
-master_sites sourceforge
-checksums md5 586afe41d6cd82d045fdc34ccf99cab3
+master_sites sourceforge
-depends_lib port:p5.12-net-snpp \
- port:p5.12-device-serialport \
- port:p5.12-mailtools \
- port:p5.12-dbi
+checksums md5 586afe41d6cd82d045fdc34ccf99cab3
-use_configure no
+depends_lib port:p5.12-net-snpp \
+ port:p5.12-device-serialport \
+ port:p5.12-mailtools \
+ port:p5.12-dbi
+
+use_configure no
build {}
# Maintain empty directories
-destroot.keepdirs ${destroot}${prefix}/var/sendpage \
- ${destroot}${prefix}/var/sendpage/lock
+destroot.keepdirs ${destroot}${prefix}/var/sendpage \
+ ${destroot}${prefix}/var/sendpage/lock
variant server {
# Create a startupitem to start/stop the server
@@ -40,75 +42,75 @@
}
pre-destroot {
- adduser sendpage
- addgroup sendpage
+ adduser sendpage
+ addgroup sendpage
- reinplace "s|Win32|Device|g" ${worksrcpath}/Makefile.PL
+ reinplace "s|Win32|Device|g" ${worksrcpath}/Makefile.PL
- reinplace "s|/etc/sendpage.cf|${prefix}/etc/sendpage/sendpage.cf|g" ${worksrcpath}/sendpage
- reinplace "s|/var/lock|${prefix}/var/sendpage/lock|g" ${worksrcpath}/sendpage
+ reinplace "s|/etc/sendpage.cf|${prefix}/etc/sendpage/sendpage.cf|g" ${worksrcpath}/sendpage
+ reinplace "s|/var/lock|${prefix}/var/sendpage/lock|g" ${worksrcpath}/sendpage
- reinplace "s|/etc/sendpage.cf|${prefix}/etc/sendpage/sendpage.cf|g" ${worksrcpath}/sendpage.init
- reinplace "s|/var/spool|${prefix}/var|g" ${worksrcpath}/sendpage.init
- reinplace "s|/usr/local/bin|${prefix}/bin|g" ${worksrcpath}/sendpage.init
+ reinplace "s|/etc/sendpage.cf|${prefix}/etc/sendpage/sendpage.cf|g" ${worksrcpath}/sendpage.init
+ reinplace "s|/var/spool|${prefix}/var|g" ${worksrcpath}/sendpage.init
+ reinplace "s|/usr/local/bin|${prefix}/bin|g" ${worksrcpath}/sendpage.init
- reinplace "s|/var/spool|${prefix}/var|g" \
- ${worksrcpath}/sendpage
+ reinplace "s|/var/spool|${prefix}/var|g" \
+ ${worksrcpath}/sendpage
- reinplace "s|/etc|${prefix}/etc/sendpage|g" ${worksrcpath}/snpp
+ reinplace "s|/etc|${prefix}/etc/sendpage|g" ${worksrcpath}/snpp
- reinplace "s|#pidfileprefix = /tmp/var/spool/sendpage/sendpage| \
- pidfileprefix = ${prefix}/var/sendpage/sendpage|g" ${worksrcpath}/sendpage.cf
+ reinplace "s|#pidfileprefix = /tmp/var/spool/sendpage/sendpage| \
+ pidfileprefix = ${prefix}/var/sendpage/sendpage|g" ${worksrcpath}/sendpage.cf
- reinplace "s|#lockprefix = /tmp/var/lock/LCK..| \
- lockprefix = ${prefix}/var/sendpage/lock/LCK..|g" ${worksrcpath}/sendpage.cf
+ reinplace "s|#lockprefix = /tmp/var/lock/LCK..| \
+ lockprefix = ${prefix}/var/sendpage/lock/LCK..|g" ${worksrcpath}/sendpage.cf
- reinplace "s|#queuedir = /tmp/var/spool/sendpage| \
- queuedir = ${prefix}/var/sendpage|g" ${worksrcpath}/sendpage.cf
+ reinplace "s|#queuedir = /tmp/var/spool/sendpage| \
+ queuedir = ${prefix}/var/sendpage|g" ${worksrcpath}/sendpage.cf
}
destroot {
- system "cd ${worksrcpath} && ${prefix}/bin/perl5.12 Makefile.PL"
- system "cd ${worksrcpath} && make"
- system "cd ${worksrcpath} && make install"
+ system "cd ${worksrcpath} && ${prefix}/bin/perl5.12 Makefile.PL"
+ system "cd ${worksrcpath} && make"
+ system "cd ${worksrcpath} && make install"
}
post-destroot {
# Copy sendpage configuration files
- xinstall -m 755 -d ${destroot}${prefix}/etc/sendpage
- xinstall -m 755 ${worksrcpath}/sendpage.cf ${destroot}${prefix}/etc/sendpage
- xinstall -m 755 ${worksrcpath}/email2page.conf ${destroot}${prefix}/etc/sendpage
- xinstall -m 755 ${worksrcpath}/snpp.conf ${destroot}${prefix}/etc/sendpage
+ xinstall -m 755 -d ${destroot}${prefix}/etc/sendpage
+ xinstall -m 755 ${worksrcpath}/sendpage.cf ${destroot}${prefix}/etc/sendpage
+ xinstall -m 755 ${worksrcpath}/email2page.conf ${destroot}${prefix}/etc/sendpage
+ xinstall -m 755 ${worksrcpath}/snpp.conf ${destroot}${prefix}/etc/sendpage
# Copy sendpage documentation & examples
- xinstall -m 755 -d ${destroot}${prefix}/share/doc/sendpage
- xinstall -m 755 ${worksrcpath}/README ${destroot}${prefix}/share/doc/sendpage
- xinstall -m 755 ${worksrcpath}/FEATURES ${destroot}${prefix}/share/doc/sendpage
- xinstall -m 755 ${worksrcpath}/TODO ${destroot}${prefix}/share/doc/sendpage
+ xinstall -m 755 -d ${destroot}${prefix}/share/doc/sendpage
+ xinstall -m 755 ${worksrcpath}/README ${destroot}${prefix}/share/doc/sendpage
+ xinstall -m 755 ${worksrcpath}/FEATURES ${destroot}${prefix}/share/doc/sendpage
+ xinstall -m 755 ${worksrcpath}/TODO ${destroot}${prefix}/share/doc/sendpage
- xinstall -m 755 -d ${destroot}${prefix}/share/sendpage/examples
- eval xinstall -m 755 [glob ${worksrcpath}/examples/*] ${destroot}${prefix}/share/sendpage/examples
- xinstall -m 755 ${worksrcpath}/${name}.init ${destroot}${prefix}/share/sendpage/examples
+ xinstall -m 755 -d ${destroot}${prefix}/share/sendpage/examples
+ eval xinstall -m 755 [glob ${worksrcpath}/examples/*] ${destroot}${prefix}/share/sendpage/examples
+ xinstall -m 755 ${worksrcpath}/${name}.init ${destroot}${prefix}/share/sendpage/examples
# Make the sendpage queue area
- xinstall -d ${destroot}${prefix}/var/sendpage/lock
- system "chmod og-rwx ${destroot}${prefix}/var/sendpage"
- system "chown sendpage ${destroot}${prefix}/var/sendpage"
- system "chgrp tty ${destroot}${prefix}/var/sendpage"
+ xinstall -d ${destroot}${prefix}/var/sendpage/lock
+ system "chmod og-rwx ${destroot}${prefix}/var/sendpage"
+ system "chown sendpage ${destroot}${prefix}/var/sendpage"
+ system "chgrp tty ${destroot}${prefix}/var/sendpage"
- system "chown sendpage ${destroot}${prefix}/var/sendpage/lock"
- system "chgrp uucp ${destroot}${prefix}/var/sendpage/lock"
+ system "chown sendpage ${destroot}${prefix}/var/sendpage/lock"
+ system "chgrp uucp ${destroot}${prefix}/var/sendpage/lock"
# Install sendpage start script
- xinstall -o root -m 755 -c ${worksrcpath}/${name}.init ${destroot}${prefix}/share/${name}
+ xinstall -o root -m 755 -c ${worksrcpath}/${name}.init ${destroot}${prefix}/share/${name}
}
post-install {
- ui_msg "\n
-README & docs --> ${prefix}/share/doc/sendpage
-Config files --> ${prefix}/etc/sendpage
-Start script --> ${prefix}/share/sendpage/sendpage.init
-Examples --> ${prefix}/share/sendpage/examples\n"
+ ui_msg "\n
+README & docs --> ${prefix}/share/doc/sendpage
+Config files --> ${prefix}/etc/sendpage
+Start script --> ${prefix}/share/sendpage/sendpage.init
+Examples --> ${prefix}/share/sendpage/examples\n"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141203/babc57d0/attachment.html>
More information about the macports-changes
mailing list