source: trunk/dports/databases/postgresql83-server/Portfile

Last change on this file was 104833, checked in by jwa@…, 4 years ago

postgresql83: don't do livecheck in these EOL'd ports

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# -*- 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
2# $Id: Portfile 104833 2013-04-03 17:38:00Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name                    postgresql83-server
7version                 8.3.23
8categories              databases
9platforms               darwin
10maintainers             mww jwa
11license                 Permissive
12description             run postgresql83 as server
13long_description        ${description}
14
15homepage                http://www.postgresql.org/
16master_sites            postgresql
17
18depends_run             port:postgresql83
19
20fetch   {}
21checksum        {}
22extract {}
23use_configure   no
24build   {}
25
26set libdir              ${prefix}/lib/postgresql83
27set dbdir               ${prefix}/var/db/postgresql83/defaultdb
28set logdir              ${prefix}/var/log/postgresql83
29set dbuser              postgres
30set dbgrp               postgres
31
32add_users ${dbuser} shell=/bin/sh group=${dbgrp} \
33    home=${prefix}/var/db/postgresql83 \
34    realname=PostgreSQL-83\ Server
35
36startupitem.create      yes
37startupitem.init        \
38        "PGCTL=${libdir}/bin/pg_ctl"
39startupitem.start       \
40        "su ${dbuser} -c \"\${PGCTL} -D \${POSTGRESQL83DATA:=${dbdir}} start -l ${logdir}/postgres.log\""
41startupitem.stop        \
42"su ${dbuser} -c \"\${PGCTL} -D \${POSTGRESQL83DATA:=${dbdir}} stop -s -m fast\""
43
44destroot {
45        xinstall -m 755 -d ${destroot}${logdir}
46        system "touch ${destroot}${logdir}/postgres.log"
47        system "chown ${dbuser}:${dbgrp} ${destroot}${logdir}/postgres.log"
48}
49
50notes "\nTo create a database instance, after install do\n\
51                sudo mkdir -p ${dbdir}\n\
52                sudo chown ${dbuser}:${dbgrp} ${dbdir}\n\
53                sudo su ${dbuser} -c \'${libdir}/bin/initdb -D ${dbdir}\'\n\
54       \nTo tweak your DBMS, consider increasing kern.sysv.shmmax\
55                by adding an increased kern.sysv.shmmax .. to /etc/sysctl.conf\n\
56       \nNote that this is the last release of the 8.3 series, upgrade!"
57
58livecheck.type  none
Note: See TracBrowser for help on using the repository browser.