This file is indexed.

postinst is in dtc-xen-firewall 0.5.17-1.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

The actual contents of the file can be viewed below.

 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/sh

set -e

. /usr/share/debconf/confmodule
db_version 2.0

db_get dtc-xen-firewall/conf_soap_server_allowed_ip
conf_soap_server_allowed_ip=$RET
db_stop

DTCXEN_ETCPATH=/etc/dtc-xen
mkdir -p $DTCXEN_ETCPATH

echo "# This is the configuration file for the dtc-xen-firewall package
# Note that you can as well dpkg-reconfigure dtc-xen-firewall to edit this file

soap_server_allowed_ip=${conf_soap_server_allowed_ip}
" >${DTCXEN_ETCPATH}/dtc-xen-firewall.sh

if ! [ -e /etc/dtc-xen/dtc-xen-firewall-custom-rules ] ; then
	echo "# This is where to add your custom rules for your Firewall

add_custom_rules () {
	# Here is a short example.
	# Disables all limitation forwarding rules for a specific target IP
	# \${IPTABLES} -A dtc-xen-fw -s 1.2.3.4 -j RETURN
	# \${IPTABLES} -A dtc-xen-fw -d 1.2.3.4 -j RETURN

	# The following is there as if there is no instructions at all,
	# the script fails. Of course, feel free to remove if you are
	# adding custom rules in this script.
	echo -n ""
}

" >/etc/dtc-xen/dtc-xen-firewall-custom-rules
fi

# Install our init.d script
if [ -e /etc/redhat-release ] ; then
	if [ -x /etc/rc.d/init.d/dtc-xen-firewall ] ; then
		echo "TODO: CentOS startup links"
		chkconfig --add dtc-xen-firewall
		if [ -x /sbin/service ] ; then
			service start dtc-xen-firewall
		fi
	fi
fi

# Automatically added by dh_installinit
if [ -x "/etc/init.d/dtc-xen-firewall" ]; then
	if [ ! -e "/etc/init/dtc-xen-firewall.conf" ]; then
		update-rc.d dtc-xen-firewall defaults >/dev/null
	fi
	invoke-rc.d dtc-xen-firewall start || exit $?
fi
# End automatically added section


exit 0