# $Id$ PNAME="mage" PVER="0.4.114" PBUILD="r1" # keep this deprecated variable around for older smage versions (< 0.4.84) PCATEGORIE="app-mage" # the new introduced variable for categories PCAT="app-mage" # keep this state here for older smage versions (< 0.4.27) # which cannot handle a global distribution file # # on all other smagefiles this variable can be kept too, # but it gets always overriden by the global distribution # file params and it is suggested to drop the local STATE variable # STATE="unstable" DESCRIPTION="Magellan Package Manager." HOMEPAGE="http://magellan-linux.de/" DEPEND=">= app-shells/bash-4 >= sys-apps/coreutils-8.12 >= sys-apps/util-linux-2.19 >= sys-apps/diffutils-3 >= sys-apps/findutils-4.4 >= sys-apps/gawk-3 >= sys-apps/grep-2 >= virtual/sed >= app-arch/bzip2-1 >= sys-apps/tar-1.26 >= sys-apps/file-5 >= sys-apps/which-2 >= sys-apps/shadow-4.1 >= sys-apps/inetutils-1.8 >= net-misc/wget-1.12 >= net-misc/rsync-3" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" SRC_URI=( mirror://${PNAME}/${SRCFILE} ) src_prepare() { munpack ${SRCFILE} || die } src_install() { cd ${SRCDIR} make DESTDIR=${BINDIR} sbindir=/usr/sbin install || die # fix version echo "${PVER}-${PBUILD}" > ${BINDIR}/usr/lib/mage/version || die } 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 }