diff options
author | Jeremy Olexa <darkside@gentoo.org> | 2011-10-14 11:53:04 -0500 |
---|---|---|
committer | Jeremy Olexa <darkside@gentoo.org> | 2011-10-14 11:53:04 -0500 |
commit | ce814b8cf7f34921123ac35891f8fdafd6ade5a4 (patch) | |
tree | 582f6d593ce5776cbde0a3cbac299aa8240605a2 /www-misc/mirrorbrain/mirrorbrain-2.15.1.ebuild | |
parent | [www-apache/mod_geoip2] specify dev-libs/geoip version to ensure compilation (diff) | |
download | darkside-ce814b8cf7f34921123ac35891f8fdafd6ade5a4.tar.gz darkside-ce814b8cf7f34921123ac35891f8fdafd6ade5a4.tar.bz2 darkside-ce814b8cf7f34921123ac35891f8fdafd6ade5a4.zip |
[www-misc/mirrorbrain] misc WIP fixes
Diffstat (limited to 'www-misc/mirrorbrain/mirrorbrain-2.15.1.ebuild')
-rw-r--r-- | www-misc/mirrorbrain/mirrorbrain-2.15.1.ebuild | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/www-misc/mirrorbrain/mirrorbrain-2.15.1.ebuild b/www-misc/mirrorbrain/mirrorbrain-2.15.1.ebuild index 7742ed0..6625855 100644 --- a/www-misc/mirrorbrain/mirrorbrain-2.15.1.ebuild +++ b/www-misc/mirrorbrain/mirrorbrain-2.15.1.ebuild @@ -2,8 +2,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: $ -EAPI="2" - +EAPI="3" +PYTHON_DEPEND="2" inherit distutils eutils MY_PN="mirrorbrain" @@ -39,12 +39,16 @@ pkg_setup() { enewuser mirrorbrain -1 -1 /dev/null mirrorbrain } +src_prepare() { + sed -i -e 's:/var/lib/GeoIP/GeoLiteCity.dat:/usr/share/GeoIP/GeoIP.dat:' ${S}/tools/geoiplookup_city.c || die + sed -i -e 's:/var/lib/GeoIP/GeoIP.dat:/usr/share/GeoIP/GeoIP.dat:' ${S}/tools/geoiplookup_continent.c || die +} src_compile() { tc-export CC cd tools ${CC} -Wall -fPIC -lGeoIP -o geoiplookup_continent geoiplookup_continent.c ${CC} -Wall -fPIC -lGeoIP -o geoiplookup_city geoiplookup_city.c - cd ../mirrordoctor + cd ../mb distutils_src_compile } @@ -56,16 +60,16 @@ src_install() { # install misc files/scripts newbin mirrorprobe/mirrorprobe.py mirrorprobe + dobin tools/{geoiplookup_continent,geoiplookup_city} + dobin tools/geoip-lite-update + newbin ${S}/tools/scanner.pl scanner insinto /usr/share/"${PN}" doins -r sql doins -r tools - rm "${D}"/usr/share/"${PN}"/tools/*.c - # install mirrordoctor - cd mirrordoctor + rm "${D}"/usr/share/"${PN}"/tools/geoiplookup_* + + cd mb distutils_src_install - doins -r famfamfam_flag_icons - mv "${D}"/usr/bin/mirrordoctor.py "${D}"/usr/bin/mirrordoctor - dosym /usr/bin/mirrordoctor /usr/bin/mb # config files insinto /etc |