
jaynix
Caldari House of Jhereg
|
Posted - 2007.11.07 19:25:00 -
[1]
Hey folks,
If your one of those Gentoo users who loves it because you get to have super control of all your installed files and locations, I'm sure you noticed the installer likes to dump files all over your file system, with no regard for uninstall. Also, I seem to have ran into a few file permission issues on gentoo (Group read/write permissions specifically). So, without further Adue, pasted below is my ebuild file.
Also, as a side question, would anyone know the legality of adding this to my portdir overlay, so anyone can get it? Or who to send an email to ask? Or if a moderator would answer here?
File: eve-000062.ebuild ----------------------- inherit eutils games
DESCRIPTION="Experimental emerge file for new eve linux client" HOMEPAGE="http://www.eve-online.com/" SRC_URI="http://ccp.vo.llnwd.net/o2/linux/eve-${PVR}.tgz"
#note, license unknown, default set. LICENSE="BSD" SLOT="0" KEYWORDS="~x86 ~amd64 ~ia64" IUSE="X gtk2 " RESTRICT="fetch nomirror"
RDEPEND=">=dev-lang/python-2.5 dev-util/glade sys-apps/dbus dev-python/pygobject dev-python/pygtk net-misc/wget gnome-base/libglade"
pkg_nofetch() { elog "Please download the linux client and place it" elog "in your distfiles directory. Usually located " elog "at /usr/portage/distfiles" elog "CCP Downoad Location: " elog " ${SRC_URI}" }
src_install() { # build our structure dobin usr/bin/eve dodoc usr/share/doc/eve/*
dodir /usr/lib/eve
insinto /usr/lib/eve doins usr/lib/eve/*
for x in `find ./usr/lib/eve -mindepth 1 -maxdepth 50 -type d -print | awk 'BEGIN{FS="/lib/"} {print $2 }'` do insinto /usr/lib/${x} doins usr/lib/${x}/* done
elog "Fixing gentoo file permissions bug.." chmod +x /usr/lib/eve/cedegaUpdateChecker chmod g+rw ${INSTALL_PATH} }
pkg_postinst() { elog "Starting installer..." set CEDEGA_UPDATER_PATH=/usr/lib/eve/ exec /usr/bin/eve
elog "Fixing second stage gentoo file permissions bug.." INSTALL_PATH=`cat /etc/cedega.conf | awk 'BEGIN{FS="="}{print $2}'` chmod g+rw ${INSTALL_PATH}
elog "Eve should now be installed." elog "The game can be ran by switching to a non-root user and running" elog "/usr/bin/eve"
}
pkg_postrm() { # remove anything extra it might install, we need to wait and find out INSTALL_PATH=`cat /etc/cedega.conf | awk 'BEGIN{FS="="}{print $2}'` elog "Removing files from installation path ${INSTALL_PATH}" rm -rf ${INSTALL_PATH} rm -rf /usr/lib/eve } -
|