Diff mktwpol-1.0.0 with a mktwpol-1.0.1

/usr/portage/app-admin/mktwpol/mktwpol-1.0.1.ebuild 2019-10-11 18:40:00.000000000 +0300
1
# Copyright 1999-2017 Gentoo Foundation
1
# Copyright 1999-2018 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=6
5 5

  
6 6
DESCRIPTION="Bash scripts to install tripwire and generate tripwire policy files"
7 7
HOMEPAGE="https://sourceforge.net/projects/mktwpol"
8
SRC_URI="mirror://sourceforge/mktwpol/${P}.tar.gz"
8
SRC_URI="mirror://sourceforge/mktwpol/${PF}.tar.gz"
9 9

  
10 10
LICENSE="CC-BY-SA-3.0"
11 11
SLOT="0"
12
KEYWORDS="amd64 ppc x86"
12
KEYWORDS="~amd64 ~ppc ~x86"
13 13
IUSE=""
14 14

  
15 15
RDEPEND="app-admin/tripwire"
16 16

  
17
S=${WORKDIR}/${PF}
18

  
17 19
src_prepare() {
18 20
	default
19
	sed -i -e 's|/usr/local|/usr|' Makefile || die
21
	sed -i -e 's:/usr/local:/usr:' Makefile || die
20 22
}
21 23

  
22
pkg_postinst() {
23
	elog
24
	elog "Installation and setup of tripwire ..."
25
	elog " - Run: \`twsetup.sh\`"
26
	elog
27
	elog "Maintenance of tripwire as packages are added and/or deleted ..."
28
	elog " - Run: \`mktwpol.sh -u\` to update tripwire policy and database"
29
	elog
30
	elog "Mktwpol is packaged with multiple policy-rules-generating files."
31
	elog "The default \"rules file\" is installed in /etc/tripwire"
32
	elog "Alternatives are installed in /usr/share/doc/${P}"
33
	elog "To use an alternative \"rules file\" ..."
34
	elog "copy it to /etc/tripwire, uncompress it, and \`touch\` it ..."
35
	elog
36
	elog "\`cp /usr/share/doc/${P}/mktwpol*.rules.bz2 /etc/tripwire\`"
37
	elog "\`bunzip2 /etc/tripwire/mktwpol*.rules.bz2\`"
38
	elog
39
	elog "mktwpol.sh uses the rules file with the most recent date."
40
	elog "Use \`touch\` to choose between multiple rules files."
41
	elog
24
pkg_preinst() {
25
	# one elog message for new/first installation
26
	# different elog message when updating
27
	if [[ -z ${REPLACING_VERSIONS} ]] ; then
28
		elog
29
		elog "To facilitate a new installation and setup of tripwire:"
30
		elog " - Run: \`twsetup.sh\`"
31
		elog
32
		elog "To update tripwire database as packages are added or deleted:"
33
		elog " - Run: \`mktwpol.sh -u\`"
34
		elog
35
		elog "Mktwpol is packaged with multiple policy-generating rules files."
36
		elog "A default \"rules file\" is installed in /etc/tripwire"
37
		elog "Alternatives are available in /usr/share/doc/${PF}"
38
		elog
39
		elog "mktwpol.sh uses the policy-generating rules file with the"
40
		elog "most recent date.  To use an alternative \"rules file\","
41
		elog "copy it from /usr/share/doc/${PF} to /etc/tripwire,"
42
		elog " uncompress it, and \`touch\` it."
43
		elog
44
		elog "Read /usr/share/doc/${PF}/README for more tips."
45
		elog
46
	else
47
		elog
48
		elog "Version bump: mktwpol policy-generating rules have changed."
49
		elog "Run \`mktwpol.sh -u\` to update tripwire policy and database."
50
		elog
51
		elog "Alternative policy-generating rules are in /usr/share/doc/${PF}"
52
		elog "To use an alternative policy-generating rules file,"
53
		elog "copy it to /etc/tripwire, uncompress and \`touch\` it."
54
		elog
55
	  fi
56
	# ewarn message if a version change from 0.x.x
57
	if [[ "${REPLACING_VERSIONS:0:1}" == "0" ]] ; then
58
		ewarn
59
		ewarn "Mktwpol default policy-generating rules no longer sort by package."
60
		ewarn
61
		ewarn "   This change does not reduce the scope of system inspection!"
62
		ewarn "          It only affects the tripwire report format."
63
		ewarn
64
		ewarn "  The previous default reporting format is still available, at"
65
		ewarn "  /usr/share/doc/${PF}/mktwpol-gentoo-packages.rules*"
66
		ewarn
67
	fi
42 68
}
Thank you!