This file is indexed.

/usr/share/dh-make-php/dh-make-php.lib is in dh-make-php 0.4.0.

This file is owned by root:root, with mode 0o644.

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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/bin/sh

get_maintainer() {
	if [ -z "${DEBMAINTAINER}" ] ; then
		echo -n "Guessing Maintainer: "
		if [ -n "${DEBFULLNAME}" ] ; then
			REALNAME=${DEBFULLNAME}
		else
			if [ -n "${USER}" ] ; then
				MYUSER=${USER}
			else
				if [ -n "${LOGNAME}" ] ; then
					MYUSER=${LOGNAME}
				else
					MYUSER=$(whoami)
				fi
			fi
			if [ -n "${MYUSER}" ] ; then
				REALNAME=$(awk -F: "/^${MYUSER}:/ { print \$5 }" /etc/passwd | sed -e "s/,.*//g")
			else
				echo "Failed determine real name! Consider using Option --maintainer."
			fi
		fi

		if [ -n "${DEBEMAIL}" ] ; then
			DEBMAINTAINER="${REALNAME} <${DEBEMAIL}>"
		else
			if [ -n "${EMAIL}" ]; then
				DEBMAINTAINER="${REALNAME} <${EMAIL}>"
			else
				if [ -f /etc/mailname ] ; then
					DEBMAINTAINER="${REALNAME} <${MYUSER}@`cat /etc/mailname`>"
				else
					echo "Failed determine mail address! Consider using Option --maintainer."
				fi
			fi
		fi
		if [ -z "${DEBMAINTAINER}" ] ; then
			echo "Failed! Consider using Option --maintainer."
		else
			echo $DEBMAINTAINER
		fi
	else
		echo "Using maintainer: $DEBMAINTAINER"
	fi
}

install_docfiles() {
	for i in ${PACKAGEDOCFILES}; do
		if [ -f ${DEBPACKAGEPREFIX}${PHP_PKG_LOWNAME}-${VERSION}/${PHP_PKG_NAME}-${VERSION}/$i ] ; then
#			chmod 644 ${DEBPACKAGEPREFIX}${PHP_PKG_LOWNAME}-${VERSION}/$i
			echo ${PHP_PKG_NAME}-${VERSION}/$i >> ${DEBPACKAGEPREFIX}${PHP_PKG_LOWNAME}-${VERSION}/debian/docs
		fi
	done
}

install_expfiles() {
	for i in ${PACKAGEEXPFILES}; do
		if [ -d ${DEBPACKAGEPREFIX}${PHP_PKG_LOWNAME}-${VERSION}/${PHP_PKG_NAME}-${VERSION}/$i ] ; then
			echo "${PHP_PKG_NAME}-${VERSION}/$i/*" >> ${DEBPACKAGEPREFIX}${PHP_PKG_LOWNAME}-${VERSION}/debian/examples
		fi
	done
}

eval_package() {
	VERSION=$(${PHPPKGINFO} . version)
	LICENSE=$(${PHPPKGINFO} . license)
	UPSTREAM=$(${PHPPKGINFO} . maintainers)
	RELEASEDATE=$(${PHPPKGINFO} . date)
	RELEASEYEAR=$(${PHPPKGINFO} . date|cut -b1-4)

#	PACKAGEDOCFILES=$(${XMLSTARLET} sel ${XMLNSREPLACEOPTION} ${XMLNSREPLACEMENT} -t -m "/${XMLNSPREFIX}package/${XMLNSPREFIX}contents/*/${XMLNSPREFIX}file[@role='doc']" -v "@name" -o " " package.xml | sed -e 's# examples/[^ ]*##g' -e 's#^examples/[^ ]*##g')
#	PACKAGETESTFILES=$(${XMLSTARLET} sel ${XMLNSREPLACEOPTION} ${XMLNSREPLACEMENT} -t -m "/${XMLNSPREFIX}package/${XMLNSPREFIX}contents/*/${XMLNSPREFIX}file[@role='test']" -v "@name" -o " " package.xml | sed -e 's# examples/[^ ]*##g' -e 's#^examples/[^ ]*##g')
	LOWLICENSE=$(echo $LICENSE | awk '{print tolower($0)}' | sed 's/ /-/g')
	if [ -f "${PREFIX}/share/dh-make-php/licenses/${LOWLICENSE}" ]; then
		LICENSEFILE=${PREFIX}/share/dh-make-php/licenses/${LOWLICENSE}
	fi
	PHP_PKG_NAME=$(${PHPPKGINFO} . package)
	PHP_PKG_LOWNAME=$(echo $PHP_PKG_NAME | awk '{print tolower($0)}' | sed 's/_/-/g')
	SUMMARY=$(${PHPPKGINFO} . summary)
}

# vim: syntax=sh