add new license and eclass

This commit is contained in:
geos_one
2007-09-01 16:41:11 +00:00
parent 2634639c7c
commit 53c5f77b56
8 changed files with 711 additions and 288 deletions

View File

@@ -0,0 +1,30 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id: deb.eclass 596 2007-05-15 23:22:30Z hron $
inherit base
DEPEND="${DEPEND} app-arch/p7zip"
cab_src_unpack() {
for x in ${A}; do
ext=${x##*.}
case "${ext}" in
exe|cab)
echo ">>> Unpacking ${x} to ${WORKDIR}"
cab_unpack "${DISTDIR}/${x}"
;;
*)
unpack ${x}
;;
esac
done
}
cab_unpack() {
local dest=${WORKDIR}
[[ -n $2 ]] && dest=$2
cabextract -q -d ${dest} $1 2>&1
}
EXPORT_FUNCTIONS src_unpack

View File

@@ -0,0 +1,16 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
#
# Original Author: Garami Gabor
# Purpose: Novell package download
# Update: Mario Fetka <mario-fetka@gmx.at>
#
# /etc/portage/novell.acc: Novell account information (NOVELL_ACCOUN_USERNAME, NOVELL_ACCOUNT_PASSWORD)
if [ -e /etc/portage/novell.acc ] ; then
. /etc/portage/novell.acc
else
RESTRICT="${RESTRICT} fetch"
fi