# Copyright 1999-2011 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_11.3/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