Package-Manager: portage-2.2.0_alpha166
RepoMan-Options: --force
This commit is contained in:
Mario Fetka 2013-04-16 22:35:35 +02:00
parent 49447607cb
commit 399d3b9497
4 changed files with 96 additions and 67 deletions

View File

@ -1,7 +1,13 @@
# ChangeLog for net-misc/opsi-depotserver
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
*opsi-depotserver-4.0.3.1 (16 Apr 2013)
16 Apr 2013; Mario Fetka <mario.fetka@gmail.com>
+opsi-depotserver-4.0.3.1.ebuild, -opsi-depotserver-4.0.2.3.ebuild:
Bump
*opsi-depotserver-4.0.2.3 (12 Nov 2012)
12 Nov 2012; Mario Fetka <mario.fetka@gmail.com>
@ -39,4 +45,3 @@
24 Jun 2011; Mario Fetka <mario.fetka@gmail.com>
opsi-depotserver-4.0.1.1.ebuild:
redigest

View File

@ -1,4 +1,4 @@
DIST opsi-depotserver-4.0.2.3-1.1.src.rpm 33589 SHA256 609e1ed9bd5fa168c9a8499188a9a4dc6024b1f1934ec33f9a5c6532199d20f0 SHA512 d78a5a452d5bedda0c1e73565e6d6c6ddb2d3215161f61a1a33f97601ce6e7f976688acf966e39ccbfb9ba19663f905fc9268e87e306ff56f8be131920d9ae3e WHIRLPOOL 29bcbd4eee98d2cb49e896c84627fab9dfc1446c478a3c18ab26fffa0685520fc8814c714182b402c4d6a0d591c1e845dc70472dff5a78acd3ae90e9e334a92e
EBUILD opsi-depotserver-4.0.2.3.ebuild 1639 SHA256 3b934871edb8f9a3bd0849358132acd8c3e6125b6c72f2bf2132b39648a16503 SHA512 4a5bcb755c0ebcbc6530b36d5f0fb5c187d2dd2bd23fac784e5118c9dd8cc07820137b7a050a37353345a653a45420278de395cdd3ffa7f717eb03df6855a49c WHIRLPOOL c06d4c281274a30e2ab1140576fcea2b3c51796a350eeaee243a2a33da57bab94be1519b818f67352553ee23d011d8f401fd3cf2b27b1a573d9eec8eeb1cf32f
MISC ChangeLog 1179 SHA256 74e4e8c9442ab8a318199cd32d9b46e48798cd712e44a15dd61e4abc37119ca5 SHA512 20b790c71bf1e9e7d28808535428bc7e42f592b251d57407915f84ac805c4e774852767fb494a627849f9f6573d042b47aac2a813519811c4025c6ff3d4527f0 WHIRLPOOL 23f2592443715346cda69d592a17cd78c7a6a68facc95e19a6733bd1190e75940ebe631ca68f0a0955ec57bfd4791056d7b170e7e6155599e7513b3dc6709e84
DIST opsi-depotserver-4.0.3.1-1.1.src.rpm 35228 SHA256 4dd8dcdeee897774c0771d8082ef048f6510b4fa36d85b7eaf7b9e34098fdf0a SHA512 ed11de5be301f63ed20aa9bece2b911815b73c75f05d8a1ee24643cf3d342030e4bc34eadba496280e536f51d7538ff25eb01601d337c0687aa2e4fa87ae8af6 WHIRLPOOL c459624808029bcd7a4f44d92f3d1623278d0d0648129efe8ad1a82cef24c915a65c0e68d7641e95775914447d4c95c1d6bffb8592f870ec74aa2f41d5dcd9d9
EBUILD opsi-depotserver-4.0.3.1.ebuild 2394 SHA256 df1ccf011aea678d50fff50f7dbc84b871dd7466157ffcf5c8b7c4e9e9afd71b SHA512 4bd33beaa3e766da876129ef09d11a8fee1aac0d8cdc1f3d9cc066196223d1f9cc80a8297af92694cd002879a8388803d0710bba19fd63af09415274d2810696 WHIRLPOOL 444539136c529f8e52d3e4d0555043c56d30c63dce6dafa79f5e80915fa7deebe536f4dec670b27035bb73e68a04702a65841af717bc1a287491e0e467e0c41f
MISC ChangeLog 1348 SHA256 192eedd70b46e1d9669031313fec46cd3ff39f79e33321d2181a43f441cbcf7c SHA512 308fbcebf88ba0537b13338ea531c1d3de07fb9c791f20eb0b26ea4f19db6db8c9f4739d444cce977f3e64e5f440af7f9d4d37b879f8e2fafc2c35945da022d1 WHIRLPOOL ddb17a873ba1f827e60329e81faa31abad9c426003a33f5e2e322957fb85e884a543e747952e79fef5827c23ee382c9be3c554fbdbe84c9f9b2d6b6b71d720fa
MISC metadata.xml 226 SHA256 a9d3f7df2362a9a7ddcbe05c5d97d726eeb4bab135b21643508149a08bf6a2b2 SHA512 5912920d8f6e9ee5126fb0aaa5717a562feb009cc59b759c6a6eaa909900b19e95e51e3aa7f32fdf2e77073b19878830b97947148e3adeff3b49e7555cfe29e9 WHIRLPOOL c07e2ddb648893f1e9c422e07b0b73a6d0f7e1c9501200b6fcc9d25fe68c3b05fe4f3523e6844067eeca6969973a44004e1ba8a6fa725591a1916648bd2d4834

View File

@ -1,62 +0,0 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="3"
RPM_VER="1.1"
inherit eutils rpm
DESCRIPTION="opsi depot server"
HOMEPAGE="http://opsi.org/"
SRC_URI="http://download.opensuse.org/repositories/home:/uibmz:/opsi:/opsi40/openSUSE_12.1/src/${P}-${RPM_VER}.src.rpm"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
#KEYWORDS=""
IUSE=""
#Requires: python-opsi >= 4.0.1 opsiconfd >= 4.0.1 opsipxeconfd >= 4.0 opsi-utils >= 4.0 opsi-linux-bootimage >= 20090927 samba sudo wget
#%if 0%{?suse_version}
#BuildRequires: pwdutils python-opsi
#Requires: pwdutils dhcp-server
#%endif
#%if 0%{?rhel_version} || 0%{?centos_version}
#Requires: dhcp redhat-lsb
#%endif
RDEPEND="dev-python/python-opsi"
DEPEND="${RDEPEND}"
pkg_setup() {
enewuser opsiconfd -1 /bin/bash /var/lib/opsi pcpatch
}
src_install() {
keepdir /var/lib/opsi/workbench
keepdir /var/lib/opsi/depot
keepdir /home/opsiproducts
keepdir /opt/pcbin/install
keepdir /var/lib/opsi/repository
keepdir /var/log/opsi/clientconnect
keepdir /var/log/opsi/bootimage
keepdir /var/log/opsi/instlog
dobin opsi-setup
}
pkg_postinst() {
if has_version <net-misc/opsi-depotserver-${PVR} ; then
# Upgrade
/usr/bin/opsi-setup --update-from unknown || true
/usr/bin/opsi-setup --set-rights /etc/opsi || true
/usr/bin/opsi-setup --set-rights /tftpboot || true
#/usr/bin/opsi-setup --set-rights /var/lib/opsi || true
else
# Install
/usr/bin/opsi-setup --init-current-config --auto-configure-dhcpd --auto-configure-samba || true
/usr/bin/opsi-setup --set-rights || true
fi
}

View File

@ -0,0 +1,86 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="3"
RPM_VER="1.1"
inherit eutils rpm
DESCRIPTION="opsi depot server"
HOMEPAGE="http://opsi.org/"
SRC_URI="http://download.opensuse.org/repositories/home:/uibmz:/opsi:/opsi40/openSUSE_12.2/src/${P}-${RPM_VER}.src.rpm"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE=""
RDEPEND="dev-python/python-opsi
net-misc/opsiconfd
net-misc/opsipxeconfd
net-misc/opsi-utils"
DEPEND="${RDEPEND}"
#Requires: opsi-linux-bootimage >= 20090927 samba sudo wget
#BuildRequires: pwdutils python-opsi
RDEPEND="dev-python/python-opsi"
DEPEND="${RDEPEND}"
src_install() {
keepdir /var/lib/opsi/workbench
keepdir /var/lib/opsi/depot
keepdir /home/opsiproducts
keepdir /opt/pcbin/install
keepdir /var/lib/opsi/repository
keepdir /var/log/opsi/clientconnect
keepdir /var/log/opsi/bootimage
keepdir /var/log/opsi/instlog
dobin opsi-setup
}
pkg_preinst() {
# add system group fileadmins and users pcpatch
fileadmingroup=$(grep "fileadmingroup" /etc/opsi/opsi.conf | cut -d "=" -f 2 | sed 's/\*//g')
if [ -z "$fileadmingroup" ]; then
fileadmingroup=pcpatch
fi
if [ $fileadmingroup != pcpatch -a -z "$(getent group $fileadmingroup)" ]; then
echo " -> Renaming group pcpatch to $fileadmingroup"
groupmod -n $fileadmingroup pcpatch
else
if [ -z "$(getent group $fileadmingroup)" ]; then
echo " -> Adding group $fileadmingroup"
groupadd -G pcpatch $fileadmingroup
fi
fi
if [ -z "`getent passwd pcpatch`" ]; then
echo " -> Adding user pcpatch"
useradd -G pcpatch -d /opt/pcbin/pcpatch -s /bin/bash pcpatch
fi
if [ -z "`getent passwd opsiconfd`" ]; then
echo " -> Adding user opsiconfd"
useradd -G pcpatch -d /var/lib/opsi -s /bin/bash opsiconfd
fi
}
#pkg_postinst() {
# echo "test1"
# if [ has_version =net-misc/opsi-depotserver-${PVR} ]; then
# # Upgrade
# echo "tess2"
# /usr/bin/opsi-setup --update-from unknown || true
# echo "test3"
# /usr/bin/opsi-setup --set-rights /etc/opsi || true
# echo "test4"
# /usr/bin/opsi-setup --set-rights /tftpboot || true
# #/usr/bin/opsi-setup --set-rights /var/lib/opsi || true
# else
# # Install
# echo "test5"
# /usr/bin/opsi-setup --init-current-config --auto-configure-dhcpd --auto-configure-samba || true
# echo "test6"
# /usr/bin/opsi-setup --set-rights || true
# fi
#}