add new license and eclass
This commit is contained in:
30
branches/experimental/eclass/7z.eclass
Normal file
30
branches/experimental/eclass/7z.eclass
Normal 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
|
||||
16
branches/experimental/eclass/novell.eclass
Normal file
16
branches/experimental/eclass/novell.eclass
Normal 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
|
||||
Reference in New Issue
Block a user