source: trunk/dports/sysutils/daemontools/Portfile

Last change on this file was 87583, checked in by blb@…, 6 years ago

My ports: drop maintainer

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# $Id: Portfile 87583 2011-11-26 22:50:44Z ryandesign@macports.org $
2
3PortSystem          1.0
4name                daemontools
5version             0.76
6revision            2
7categories          sysutils
8platforms           darwin
9license             public-domain
10maintainers         nomaintainer
11description         collection of tools for managing UNIX services
12long_description \
13   daemontools is an extensive collection of tools for managing UNIX \
14   services. It includes tools for starting, restarting, stopping, \
15   monitoring and logging any services that you might wish to run.
16
17homepage            http://cr.yp.to/daemontools.html
18master_sites        http://cr.yp.to/daemontools/ \
19                    http://smarden.org/pape/djb/manpages/:man
20distfiles-append    ${distname}-man.tar.gz:man
21checksums           ${distname}.tar.gz md5 1871af2453d6e464034968a0fbcb2bfc \
22                    ${distname}-man.tar.gz md5 2d3858a48f293c87202f76cd883438ee
23
24worksrcdir          admin/${worksrcdir}
25
26use_configure       no
27
28build.cmd           package/compile
29build.target
30
31pre-build {
32   system "cd ${workpath}/${worksrcdir} && echo x >>src/trypoll.c"
33}
34post-build {
35   system "cd ${workpath}/daemontools-man && gzip *.8"
36}
37
38destroot {
39   xinstall -m 755 -W ${worksrcpath}/command envdir envuidgid fghack \
40      multilog pgrphack readproctitle setlock setuidgid softlimit supervise \
41      svc svok svscan svscanboot svstat tai64n tai64nlocal \
42      ${destroot}${prefix}/sbin
43   xinstall -m 755 -W ${filespath} svscan-pathwrapper \
44      ${destroot}${prefix}/sbin
45   reinplace "s|@@PREFIX@@|${prefix}|g" \
46      ${destroot}${prefix}/sbin/svscan-pathwrapper
47   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
48   xinstall -m 644 -W ${worksrcpath}/src CHANGES TODO \
49      ${destroot}${prefix}/share/doc/${name}
50
51   xinstall -m 755 -d ${destroot}${prefix}/share/man/man8
52   eval xinstall -m 644 [glob ${workpath}/daemontools-man/*.8.gz] \
53      ${destroot}${prefix}/share/man/man8
54   xinstall -m 644 ${workpath}/daemontools-man/README \
55      ${destroot}${prefix}/share/doc/${name}/README_MANPAGES
56   xinstall -m 755 -d ${destroot}${prefix}/var/svscan/service
57}
58
59destroot.keepdirs   ${destroot}${prefix}/var/svscan/service
60
61post-activate {
62   ui_msg "Note, to use svscan, a startupitem has been created, but you"
63   ui_msg "must use ${prefix}/var/svscan/service for it instead of just"
64   ui_msg "/service"
65}
66
67startupitem.create       yes
68startupitem.name         svscan
69startupitem.executable   ${prefix}/sbin/svscan-pathwrapper ${prefix}/var/svscan/service
70
Note: See TracBrowser for help on using the repository browser.