# $Id$ PNAME="mage" PVER="0.4.110" 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 >= virtual/grep >= virtual/sed >= virtual/bzip2 >= virtual/tar >= sys-apps/file-5 >= virtual/which >= virtual/shadow >= virtual/inetutils >= virtual/wget >= net-misc/rsync-3" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude alx 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 } 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 }