blob: 1e97b019ccde1b85ecae7da644244929ec4123f6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/bin/sh
#
# $FreeBSD$
#
export PATH=/bin:/sbin:/usr/bin:/usr/sbin
PREFIX=${PKG_PREFIX:-%%PREFIX%%}
if [ "$2" = "POST-INSTALL" ]; then
${PREFIX}/configure/install x
[ -e ${PREFIX}/control/me ] || (cd ${PREFIX}/configure && ./config)
%%RCDLINK%%ln -s ${PREFIX}/rc %%LOCALBASE%%/etc/rc.d/qmail.sh
%%RCDLINK%%echo ""
%%RCDLINK%%echo "A %%LOCALBASE%%/etc/rc.d/qmail.sh symlink was created. To enable qmail at boot"
%%RCDLINK%%echo "time you need to copy a script to %%PREFIX%%/rc. There are some examples at"
%%RCDLINK%%echo "%%PREFIX/boot"
%%RCDLINK%%echo ""
if ! touch ${PREFIX}/alias/.qmail-postmaster \
${PREFIX}/alias/.qmail-root \
${PREFIX}/alias/.qmail-mailer-daemon; then
echo "Failed to create files :"
echo " ${PREFIX}/alias/.qmail-postmaster"
echo " ${PREFIX}/alias/.qmail-root"
echo " ${PREFIX}/alias/.qmail-mailer-daemon"
exit 1
fi
fi
exit 0
|