Bump
Package-Manager: portage-2.2.0_alpha166 RepoMan-Options: --force
This commit is contained in:
parent
399d3b9497
commit
24f8e3782d
@ -2,6 +2,9 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: $
|
||||
|
||||
16 Apr 2013; Mario Fetka <mario.fetka@gmail.com> python-opsi-4.0.3.1.ebuild:
|
||||
Bump
|
||||
|
||||
*python-opsi-4.0.3.1 (16 Apr 2013)
|
||||
|
||||
16 Apr 2013; Mario Fetka <mario.fetka@gmail.com> +python-opsi-4.0.3.1.ebuild,
|
||||
|
@ -1,4 +1,4 @@
|
||||
DIST python-opsi-4.0.3.1-1.1.src.rpm 630353 SHA256 110db9e967bd9f6813e6ce55f0d8a34cfe603a9cc514b580543e84af90eedbc5 SHA512 88dfecf0aaf5d94e59dfde72bc45f47db63e1d37ce7188b910a9bcd17b75c6705c4804d8a59bc04e83135296a54a582bb9f02a7784c7bb159e1b755f0c372fbd WHIRLPOOL 7350ce8e03097c9ed789c402d8c95f8436d84fbf364278867520068c5a672adab66e404ba3f780ec242ad6825db36885c47dba28a8455c547a2347e8e40b1b1c
|
||||
EBUILD python-opsi-4.0.3.1.ebuild 2004 SHA256 b2505d10d8fafd6efa1433f892435ebbcc1023da6cb41c186f49369bb4ae4dd5 SHA512 799af18c0dcc7a52f8954e4fdb8b4a6feff6a084b1bda990de6d5099889d7b14d26caf03a00b5f53fd7b475e10c4c0479de32d321175bf1be1c1fd3ff0bffbb2 WHIRLPOOL e6cfb2e21a31ffa9fde7dbca9c169fef89f93f9ab21dc6bf842c19ca49cea167fe128b3e749ec7ff21434862e22b548408ab01f3f82e63f70136741098176a41
|
||||
MISC ChangeLog 1597 SHA256 c23ef7497948a68b0f76a2816686f042dbc438962e143f4d92cfe4f9b1c7566c SHA512 ade075295d834e00414b2e090d79d21190c80f8708f134dbeb736af6ea2bf26c644e184b29b955439220e5673a14eca07beaae3c8c14588f5f3b9012a41d4498 WHIRLPOOL 444b9c8cf97ef53f6b0784673135e2c03377a9c99b0f9c02b666f66bed23804304cf3464cfd87565bb4fee0bc0c6ecdd7eaf5c7d21ea67c2c4ff0671ef71ae74
|
||||
EBUILD python-opsi-4.0.3.1.ebuild 2813 SHA256 fd5b4ce38243c7b5933fcdb09ae4a9fbeaa1dd17704e361ce58db69a42c34293 SHA512 253e18df1d65dbc6134a99911eed0eee936f4b98e3984d82d2b47c7dfe043e828beb744f3d2d2d402610f1ce2baa2a9e10dd66016f92ce9828368b166dc8e847 WHIRLPOOL ac44140cfb3afcfb88f69a92ada6031b9d9d27e721000f54e257fade2881c101b69b1c8e33654f1a0be1f0b4432cfde534a219e8d8da1e1ef2994a6785695ec7
|
||||
MISC ChangeLog 1684 SHA256 c80eea936ff7bc04c2860a6dcd637b051c2f8efa75010066179f56955bac9d3b SHA512 9039f9f0e93d1dd5677419676c0f75705195d5a640d3327bb99c862be9ef631129a0ed42aeffd0dc79c1eefa87f5c476e255cf4f6cd195878d78730fd29fdb0f WHIRLPOOL 428023396dca91950625c9238fca1ae9d3b4769e94e7bc6322433c807ecba8a7e6443a9b18b75c34481599a00dccf03f39ce67b9084b67b98c6baadc25feab7d
|
||||
MISC metadata.xml 226 SHA256 a9d3f7df2362a9a7ddcbe05c5d97d726eeb4bab135b21643508149a08bf6a2b2 SHA512 5912920d8f6e9ee5126fb0aaa5717a562feb009cc59b759c6a6eaa909900b19e95e51e3aa7f32fdf2e77073b19878830b97947148e3adeff3b49e7555cfe29e9 WHIRLPOOL c07e2ddb648893f1e9c422e07b0b73a6d0f7e1c9501200b6fcc9d25fe68c3b05fe4f3523e6844067eeca6969973a44004e1ba8a6fa725591a1916648bd2d4834
|
||||
|
@ -2,10 +2,10 @@
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI="3"
|
||||
EAPI="4"
|
||||
PYTHON_DEPEND="2"
|
||||
SUPPORT_PYTHON_ABIS="1"
|
||||
RESTRICT_PYTHON_ABIS="3.*"
|
||||
RESTRICT_PYTHON_ABIS="3.* *-jython"
|
||||
|
||||
RPM_VER="1.1"
|
||||
|
||||
@ -20,6 +20,8 @@ SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE=""
|
||||
|
||||
# python-magic python-asn1
|
||||
|
||||
RDEPEND="dev-python/twisted-web
|
||||
dev-python/twisted-conch
|
||||
sys-apps/file[python]
|
||||
@ -44,12 +46,6 @@ DEPEND="${RDEPEND}
|
||||
|
||||
PYTHON_MODNAME="OPSI"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup pcpatch
|
||||
enewgroup opsiadmin
|
||||
enewuser pcpatch -1 /bin/bash /opt/pcbin/pcpatch pcpatch
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
distutils_src_prepare
|
||||
sed -i 's#/etc/dhcp3/dhcpd.conf#/etc/dhcp/dhcpd.conf#;s#/etc/init.d/dhcp3-server#/etc/init.d/dhcpd#' data/backends/dhcpd.conf
|
||||
@ -58,22 +54,49 @@ src_prepare() {
|
||||
src_install() {
|
||||
distutils_src_install
|
||||
dosym ../20_legacy.conf etc/opsi/backendManager/extend.d/configed/20_legacy.conf
|
||||
|
||||
fowners -R root:pcpatch /etc/opsi/backendManager
|
||||
find "${D}"/etc/opsi/backendManager -type d -exec chmod 770 {} \;
|
||||
find "${D}"/etc/opsi/backendManager -type f -exec chmod 660 {} \;
|
||||
fowners -R root:pcpatch /etc/opsi/backends
|
||||
fperms 770 /etc/opsi/backends
|
||||
fperms 660 /etc/opsi/backends/*.conf
|
||||
|
||||
touch "${D}"/etc/opsi/pckeys
|
||||
fowners root:pcpatch /etc/opsi/pckeys
|
||||
fperms 660 /etc/opsi/pckeys
|
||||
|
||||
touch "${D}"/etc/opsi/passwd
|
||||
fowners root:pcpatch /etc/opsi/passwd
|
||||
fperms 660 /etc/opsi/passwd
|
||||
|
||||
dosym acl.conf.default /etc/opsi/backendManager/acl.conf
|
||||
dosym dispatch.conf.default /etc/opsi/backendManager/dispatch.conf
|
||||
}
|
||||
|
||||
|
||||
pkg_postinst() {
|
||||
distutils_pkg_postinst
|
||||
|
||||
fileadmingroup=$(grep "fileadmingroup" /etc/opsi/opsi.conf | cut -d "=" -f 2 | sed 's/\s*//g')
|
||||
if [ -z "$fileadmingroup" ]; then
|
||||
fileadmingroup=pcpatch
|
||||
fi
|
||||
if [ $fileadmingroup != pcpatch -a -z "$(getent group $fileadmingroup)" ]; then
|
||||
groupmod -n $fileadmingroup pcpatch
|
||||
else
|
||||
if [ -z "$(getent group $fileadmingroup)" ]; then
|
||||
groupadd $fileadmingroup
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z "`getent passwd pcpatch`" ]; then
|
||||
useradd -G $fileadmingroup -d /var/lib/opsi -s /bin/bash pcpatch
|
||||
fi
|
||||
|
||||
if [ -z "`getent group opsiadmin`" ]; then
|
||||
groupadd opsiadmin
|
||||
fi
|
||||
|
||||
chown -R root:$fileadmingroup /etc/opsi/backendManager
|
||||
find /etc/opsi/backendManager -type d -exec chmod 770 {} \;
|
||||
find /etc/opsi/backendManager -type f -exec chmod 660 {} \;
|
||||
chown -R root:$fileadmingroup /etc/opsi/backends
|
||||
chmod 770 /etc/opsi/backends
|
||||
chmod 660 /etc/opsi/backends/*.conf
|
||||
chown root:$fileadmingroup /etc/opsi/opsi.conf
|
||||
chmod 660 /etc/opsi/opsi.conf
|
||||
|
||||
test -e /etc/opsi/pckeys || touch /etc/opsi/pckeys
|
||||
chown root:$fileadmingroup /etc/opsi/pckeys
|
||||
chmod 660 /etc/opsi/pckeys
|
||||
|
||||
test -e /etc/opsi/passwd || touch /etc/opsi/passwd
|
||||
chown root:$fileadmingroup /etc/opsi/passwd
|
||||
chmod 660 /etc/opsi/passwd
|
||||
|
||||
[ -e "/etc/opsi/backendManager/acl.conf" ] || ln -s /etc/opsi/backendManager/acl.conf.default /etc/opsi/backendManager/acl.conf
|
||||
[ -e "/etc/opsi/backendManager/dispatch.conf" ] || ln -s /etc/opsi/backendManager/dispatch.conf.default /etc/opsi/backendManager/dispatch.conf
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user