correct patch to reflect opsi defaults

Package-Manager: portage-2.2.0_alpha166
RepoMan-Options: --force
This commit is contained in:
Mario Fetka 2013-04-21 20:39:11 +02:00
parent a66829784e
commit 3787d5ba43
3 changed files with 16 additions and 12 deletions

View File

@ -2,6 +2,10 @@
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
21 Apr 2013; Mario Fetka <mario.fetka@gmail.com>
opsi-linux-bootimage-20130207.ebuild:
correct patch to reflect opsi defaults
*opsi-linux-bootimage-20130207 (17 Apr 2013)
17 Apr 2013; Mario Fetka <mario.fetka@gmail.com> +metadata.xml,

View File

@ -1,4 +1,4 @@
DIST opsi-linux-bootimage-20130207-1.1.src.rpm 86815012 SHA256 ae2f448a50c4b35e4b89c102f31b78a288688e11473a70e3375a1801c32e4667 SHA512 8aed85d9401c0d76f5c4fc15bbeb0d3a215e0b850a17e13b8055dd370c2862481abe4d2c64ed3a14dc2a478217febc461853d6a84b78e6ded802b3f598a1d874 WHIRLPOOL 0b6cba90c7cda04fb3482dd89702c354a2b7bb7d94c7336d915b081bb52157f71ac8c53a4af549ca9551d79dbe5e1603464f6ad86e1176c02cc81a98529a0db7
EBUILD opsi-linux-bootimage-20130207.ebuild 1577 SHA256 0dbade6deca4d9be29edcb9995c125ef9dae6f59283d356b960d88b1442825dc SHA512 e8bd6741bcc6ec03e66a91b1ab66fbc4fbf7f6d9fb882fe666e71b6c29d0cdccfe7ff7d7c5ef2c3b3579d51a1eb3c8b9d4176263b13c9f82766b5bd75d80b33c WHIRLPOOL 0e28370329cdbe68cac26e17f2e902052166ab69e233905ef64d098b7fd040698c977a749d2a7c6e80fce52de4815bb2e6fb6e456362235d071e923aee883399
MISC ChangeLog 300 SHA256 7afec096054e9b2ea2b8101df8763f14b87d15af7f76b99f2bf83d5e95307588 SHA512 41e8793ee8e10c4f0a9d4732d284e8cae395c6334fb433b4279ec97bd82411e79d9ce5ae73c078a03f7efda45733e9efc8533626111903dec86ce21610816167 WHIRLPOOL e648bdb1207baeea52cb1be969140504315e22c7a8250847d017669077c8d1c168f7485f32b6efd445dd37540836eb28875324c361c6ade974c7288a0f30af4c
EBUILD opsi-linux-bootimage-20130207.ebuild 1587 SHA256 b64e56b061a7346c709b21e4403e1cbabfd6da6cf7ffa15043f7412a723b6e00 SHA512 0408cb4a783999d620a590c2552aa5d69113772ccf0d7af436d18e5fc757b2f9662c98cac955b0b44373a04841cb0fe0e65d42a85a114d4558c93ed562e1cb84 WHIRLPOOL 9eeb0ad363382c724954c7c084ff0da41a6746d92a90e78f5bbfbf775455c11a91351074f17f19a41d91c6f0328e32599924cdeec8735055838d76ba75e5029d
MISC ChangeLog 433 SHA256 dcae115a7498be716d8e080ad223d86140e20a85fea3b783564a8cdc49302433 SHA512 16444f0b002e49768d6bea5235b39ccd260eed1c266bd365b94638f081605e26be5ca020daa78f8a6c2bae8a3d082b2fa26b90233978ca18fa4c3c08f8ec4812 WHIRLPOOL cc8805316b88ae8f0f586ad130f1886cad09998469458cea3d1ac4df14c7698f614588c74c82509ae2890527b4527711cb42c13f8e4e5342b6c18aa09514612a
MISC metadata.xml 226 SHA256 a9d3f7df2362a9a7ddcbe05c5d97d726eeb4bab135b21643508149a08bf6a2b2 SHA512 5912920d8f6e9ee5126fb0aaa5717a562feb009cc59b759c6a6eaa909900b19e95e51e3aa7f32fdf2e77073b19878830b97947148e3adeff3b49e7555cfe29e9 WHIRLPOOL c07e2ddb648893f1e9c422e07b0b73a6d0f7e1c9501200b6fcc9d25fe68c3b05fe4f3523e6844067eeca6969973a44004e1ba8a6fa725591a1916648bd2d4834

View File

@ -27,14 +27,14 @@ src_compile() {
}
src_install() {
insinto /tftpboot/opsi
insinto /tftpboot/linux
doins syslinux/chain.c32 syslinux/menu.c32 syslinux/pxelinux.0
newins miniroot.bz2 miniroot-${PV}.bz2
newins vmlinuz vmlinuz-${KVER}
dosym miniroot-${PV}.bz2 tftpboot/opsi/miniroot.bz2
dosym vmlinuz-${KVER} tftpboot/opsi/install
dosym miniroot-${PV}.bz2 tftpboot/linux/miniroot.bz2
dosym vmlinuz-${KVER} tftpboot/linux/install
insinto /tftpboot/opsi/pxelinux.cfg
insinto /tftpboot/linux/pxelinux.cfg
doins default.menu default.nomenu install
}
@ -42,12 +42,12 @@ src_install() {
pkg_postinst() {
fileadmingroup=$(grep "fileadmingroup" /etc/opsi/opsi.conf | cut -d "=" -f 2 | sed 's/ //g')
chown -R opsiconfd:$fileadmingroup /tftpboot/opsi || true
chmod 2775 /tftpboot/opsi
chmod 2775 /tftpboot/opsi/pxelinux.cfg
find /tftpboot/opsi -type f -exec chmod 664 {} \;
if [ ! -e /tftpboot/opsi/pxelinux.cfg/default ]; then
cd /tftpboot/opsi/pxelinux.cfg
chown -R opsiconfd:$fileadmingroup /tftpboot/linux || true
chmod 2775 /tftpboot/linux
chmod 2775 /tftpboot/linux/pxelinux.cfg
find /tftpboot/linux -type f -exec chmod 664 {} \;
if [ ! -e /tftpboot/linux/pxelinux.cfg/default ]; then
cd /tftpboot/linux/pxelinux.cfg
ln -s default.menu default
cd - >/dev/null
fi