blob: e039354698460d5b1e12740e76cd2bf726f8dabf (
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
35
|
#!/bin/sh
#
# $FreeBSD$
#
PATH=/bin:/usr/bin:/usr/sbin
if [ -z "${XORP_GROUP}" ]; then
XORP_GROUP=xorp
fi
case $2 in
POST-INSTALL)
if [ ! -f ${PREFIX}/etc/xorp.conf.sample ]; then \
cp ${WRKSRC}/rtrmgr/config.boot.sample ${PREFIX}/etc/xorp.conf.sample; \
fi
if pw group show "${XORP_GROUP}" 2>/dev/null; then \
echo "You already have a group \"${XORP_GROUP}\", so I will use it."; \
else \
echo "Adding group \"${XORP_GROUP}\"."; \
pw groupadd -n ${XORP_GROUP} 2>/dev/null; \
fi
echo ""
echo "Add the following lines to /etc/rc.conf to enable xorp:"
echo ""
echo "defaultrouter=\"NO\""
echo "xorp_enable=\"YES\""
echo ""
echo "A configuration file must be created at ${PREFIX}/etc/xorp.conf before use."
echo ""
echo "Users who will be changing the xorp configuration via xorpsh"
echo "must be members of the group xorp."
echo ""
;;
esac
|