Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 513158
Collapse All | Expand All

(-)/usr/portage/dev-libs/geoip/geoip-1.6.0-r2.ebuild (-2 / +6 lines)
Lines 39-50 Link Here
39
	prune_libtool_files
39
	prune_libtool_files
40
40
41
	newsbin "${FILESDIR}"/geoipupdate-r3.sh geoipupdate.sh
41
	newsbin "${FILESDIR}"/geoipupdate-r3.sh geoipupdate.sh
42
	keepdir "${ROOT}/usr/share/GeoIP"
42
}
43
}
43
44
44
pkg_postinst() {
45
pkg_postinst() {
45
	"${ROOT}"/usr/sbin/geoipupdate.sh --force
46
	"${ROOT}"/usr/sbin/geoipupdate.sh --force
46
}
47
}
47
48
48
pkg_postrm() {
49
pkg_prerm() {
49
	rm -r "${ROOT}/usr/share/GeoIP/"
50
	# ATTENTION Check if this is uninstall action (i.e. not just a reinstall/upgrade)
51
	if [ -z "${REPLACED_BY_VERSION}" ]; then
52
	    rm -r "${ROOT}"/usr/share/GeoIP/*.dat
53
	fi
50
}
54
}

Return to bug 513158