# $Id$ PNAME="mage" PVER="0.4.29" PBUILD="r1" PCATEGORIE="app-mage" DESCRIPTION="Magellan Package Manager." HOMEPAGE="http://magellan-linux.de/" DEPEND="" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mcore SRC_URI=( mirror://${PNAME}/${SRCFILE} ) src_prepare() { munpack ${SRCFILE} || die } src_install() { cd ${SRCDIR} make DESTDIR=${BINDIR} install || die # fix version echo "${PVER}-${PBUILD}" > ${BINDIR}/usr/lib/mage/version || die } preinstall() { add_conf_prot_mask /etc/mage.rc.example /etc/etc-update.conf } postinstall() { local PVER PVER="$(echo ${PKGNAME} | cut -d- -f2)" echo echo -e "Important:" echo -e "\tIf you upgraded mage from a version < ${PVER}," echo -e "\tcheck '/etc/mage.rc.example' for new pathnames" echo -e "\tand copy expected files there." echo -e "\tEdit your /etc/mage.rc that it fits to the example file." echo echo -e "\tAlso select an profile from ${MAGEDIR}/profiles and link" echo -e "\tit to /etc/mage-profile." echo -e "\tex. 'ln -snf ${MAGEDIR}/profiles/kernel26 /etc/mage-profile'" echo }