diff options
author | Jose Alonso Cardenas Marquez <acm@FreeBSD.org> | 2013-03-24 04:29:26 +0000 |
---|---|---|
committer | Jose Alonso Cardenas Marquez <acm@FreeBSD.org> | 2013-03-24 04:29:26 +0000 |
commit | f1f850b59074ded9c7ab3101b9de7d36bc01a338 (patch) | |
tree | 43cbf143dae235d3bc06caad30e51acbf4c025e0 /databases/firebird20-server/pkg-install | |
parent | 0d35689c9e31096530df7424f47f55daef27e2a7 (diff) |
Notes
Diffstat (limited to 'databases/firebird20-server/pkg-install')
-rw-r--r-- | databases/firebird20-server/pkg-install | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/databases/firebird20-server/pkg-install b/databases/firebird20-server/pkg-install new file mode 100644 index 000000000000..3fe8ab2eb470 --- /dev/null +++ b/databases/firebird20-server/pkg-install @@ -0,0 +1,47 @@ +#!/bin/sh + +# $FreeBSD$ + +PATH=/bin:/usr/bin:/usr/sbin + +buildwarning() { +cat <<EOF +############################################################################### + + ** IMPORTANT ** + +Keep in mind that if you build firebird server as 'root', this may cause +conflicts with SysV semaphores of running services. + +If you want to cancel it, press ctrl-C now if you need check some things +before of build it. + +############################################################################### +EOF + sleep 5 +} + +case $2 in +PRE-INSTALL) + buildwarning +;; + +POST-INSTALL) +cd /var/db/firebird + +# Lock files + +for i in isc_init1 isc_lock1 isc_event1 +do + FileName=$i.`hostname` + touch $FileName + chmod uga=rw $FileName + chown firebird:firebird $FileName +done + +touch firebird.log +chown firebird:firebird firebird.log security2.fdb + +;; + +esac |