Initial commit
Package-Manager: portage-2.2.0_alpha166 RepoMan-Options: --force
This commit is contained in:
parent
24f8e3782d
commit
6baebe7126
9
net-misc/opsi-linux-bootimage/ChangeLog
Normal file
9
net-misc/opsi-linux-bootimage/ChangeLog
Normal file
@ -0,0 +1,9 @@
|
||||
# ChangeLog for net-misc/opsi-linux-bootimage
|
||||
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: $
|
||||
|
||||
*opsi-linux-bootimage-20130207 (17 Apr 2013)
|
||||
|
||||
17 Apr 2013; Mario Fetka <mario.fetka@gmail.com> +metadata.xml,
|
||||
+opsi-linux-bootimage-20130207.ebuild:
|
||||
Initial commit
|
4
net-misc/opsi-linux-bootimage/Manifest
Normal file
4
net-misc/opsi-linux-bootimage/Manifest
Normal file
@ -0,0 +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
|
||||
MISC metadata.xml 226 SHA256 a9d3f7df2362a9a7ddcbe05c5d97d726eeb4bab135b21643508149a08bf6a2b2 SHA512 5912920d8f6e9ee5126fb0aaa5717a562feb009cc59b759c6a6eaa909900b19e95e51e3aa7f32fdf2e77073b19878830b97947148e3adeff3b49e7555cfe29e9 WHIRLPOOL c07e2ddb648893f1e9c422e07b0b73a6d0f7e1c9501200b6fcc9d25fe68c3b05fe4f3523e6844067eeca6969973a44004e1ba8a6fa725591a1916648bd2d4834
|
8
net-misc/opsi-linux-bootimage/metadata.xml
Normal file
8
net-misc/opsi-linux-bootimage/metadata.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>no-herd</herd>
|
||||
<maintainer>
|
||||
<email>mario.fetka@gmail.com</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
@ -0,0 +1,58 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=4
|
||||
|
||||
inherit eutils rpm
|
||||
|
||||
RPM_VER="1.1"
|
||||
KVER="3.6.11"
|
||||
|
||||
DESCRIPTION="opsi linux bootimage"
|
||||
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"
|
||||
IUSE=""
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="net-misc/opsi-utils"
|
||||
DEPEND="${RDEPEND}"
|
||||
RESTRICT=""
|
||||
SLOT="0"
|
||||
|
||||
src_compile() {
|
||||
einfo "Nothing to compile"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /tftpboot/opsi
|
||||
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
|
||||
|
||||
insinto /tftpboot/opsi/pxelinux.cfg
|
||||
doins default.menu default.nomenu 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
|
||||
ln -s default.menu default
|
||||
cd - >/dev/null
|
||||
fi
|
||||
serviceentry=$(opsi-admin --no-depot -Sd method config_getObjects '[]' '{"id":"clientconfig.configserver.url"}' | grep defaultValues | cut -d "'" -f2)
|
||||
if [ "$serviceentry" != "" ]; then
|
||||
sed -i "s,append.*$,& service=$serviceentry,g" /tmp/default.menu
|
||||
fi
|
||||
}
|
Loading…
Reference in New Issue
Block a user