source: trunk/dports/www/pserv/Portfile @ 87969

Last change on this file since 87969 was 30257, checked in by jmpp@…, 12 years ago

nomaintainer address abstraction in www category.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1# $Id: Portfile 30257 2007-10-23 02:28:30Z jmpp@macports.org $
2
3PortSystem 1.0
4
5name                    pserv
6version                 3.0
7categories              www
8platforms               darwin
9maintainers             nomaintainer
10description             Pico Server is a small web server.
11long_description        ${description}
12
13homepage                http://pserv.sourceforge.net/
14master_sites    sourceforge
15extract.suffix  .tar.Z
16checksums               md5 2c38f859631ab09f3cd4ff15b4de457e
17patchfiles              patch-main.h \
18                                patch-Makefile
19
20worksrcdir              pserv
21
22use_configure   no
23
24build.dir               ${worksrcpath}/sources
25build.args              PREFIX=${prefix}
26build.target
27
28destroot        {
29        xinstall -m 755 ${worksrcpath}/sources/pserv \
30                ${destroot}${prefix}/sbin
31        xinstall -m 755 -d ${destroot}${prefix}/var/www/ \
32                ${destroot}${prefix}/share/pserv/ \
33                ${destroot}${prefix}/etc/pserv/ \
34                ${destroot}${prefix}/var/log/pserv
35        xinstall -m 644 ${worksrcpath}/defaults/index.html \
36                ${destroot}${prefix}/var/www
37        xinstall -m 644 ${worksrcpath}/defaults/mime_types.dat \
38                ${destroot}${prefix}/share/pserv/
39        xinstall -m 644 ${filespath}/pserv.conf \
40                ${destroot}${prefix}/etc/pserv/
41        reinplace "s|__PREFIX__|${prefix}|g" \
42                ${destroot}${prefix}/etc/pserv/pserv.conf
43        system "touch ${destroot}${prefix}/var/log/pserv/pserv.log"
44}
Note: See TracBrowser for help on using the repository browser.