Update databases/postgresql12-server to version 12.2_2
[dports.git] / databases / firebird25-server / pkg-install-server
1 #!/bin/sh
2
3 # $FreeBSD: /tmp/pcvs/ports/databases/firebird25-server/files/pkg-install.in,v 1.2 2011-07-10 17:37:11 crees Exp $
4
5 PATH=/bin:/usr/bin:/usr/sbin
6
7 buildwarning() {
8 cat <<EOF
9 ###############################################################################
10
11                              ** IMPORTANT **
12
13 Keep in mind that if you build firebird server as 'root', this may cause
14 conflicts with SysV semaphores of running services.
15
16 If you want to cancel it, press ctrl-C now if you need check some things
17 before of build it.
18
19 ###############################################################################
20 EOF
21         sleep 5
22 }
23
24 case $2 in
25 PRE-INSTALL)
26         buildwarning
27 ;;
28 POST-INSTALL)
29 cd /var/db/firebird
30
31 # Lock files
32
33 for i in isc_init1 isc_lock1 isc_event1
34 do
35         FileName=$i.`hostname`
36         touch $FileName
37         chmod uga=rw $FileName
38         chown firebird:firebird $FileName
39 done
40
41 touch firebird.log
42 chown firebird:firebird firebird.log security2.fdb
43
44 ;;
45
46 esac