mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 19:56:32 +02:00
chore(sys-apps/baselayout/): import from portage
Change-Id: Iedfefd6ada2c203307437f898e5ad0c25224fc8d
This commit is contained in:
parent
acc2bb8712
commit
4d2d8a8164
227
sdk_container/src/third_party/portage-stable/sys-apps/baselayout/ChangeLog
vendored
Normal file
227
sdk_container/src/third_party/portage-stable/sys-apps/baselayout/ChangeLog
vendored
Normal file
@ -0,0 +1,227 @@
|
||||
# ChangeLog for sys-apps/baselayout
|
||||
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/ChangeLog,v 1.530 2012/10/13 19:18:18 aballier Exp $
|
||||
|
||||
13 Oct 2012; Alexis Ballier <aballier@gentoo.org> baselayout-2.2.ebuild:
|
||||
Do not die for "non-standard" mutlilib setups on FreeBSD since that is what
|
||||
we want. bug #436560
|
||||
|
||||
23 Aug 2012; Mike Frysinger <vapier@gentoo.org> baselayout-2.1-r1.ebuild,
|
||||
baselayout-2.2.ebuild:
|
||||
Also create the dir that we symlink lib to when SYMLINK_LIB=yes #423571 by
|
||||
Kerin Millar.
|
||||
|
||||
*baselayout-2.2 (20 Aug 2012)
|
||||
|
||||
20 Aug 2012; Mike Frysinger <vapier@gentoo.org> +baselayout-2.2.ebuild:
|
||||
Version bump #419465 by Yuta SATOH.
|
||||
|
||||
# See the rc-scripts ChangeLog in subversion for release info:
|
||||
# http://sources.gentoo.org/viewcvs.py/*checkout*/baselayout/trunk/ChangeLog
|
||||
|
||||
17 Jun 2012; Raúl Porcel <armin76@gentoo.org> baselayout-2.1-r1.ebuild:
|
||||
alpha/ia64/m68k/s390/sh/sparc stable wrt #416655
|
||||
|
||||
28 May 2012; Markus Meier <maekke@gentoo.org> baselayout-2.1-r1.ebuild:
|
||||
arm stable, bug #416655
|
||||
|
||||
23 May 2012; Jeroen Roovers <jer@gentoo.org> baselayout-2.1-r1.ebuild:
|
||||
Stable for HPPA (bug #416655).
|
||||
|
||||
23 May 2012; Brent Baude <ranger@gentoo.org> baselayout-2.1-r1.ebuild:
|
||||
Marking baselayout-2.1-r1 ppc64 for bug 416655
|
||||
|
||||
22 May 2012; Brent Baude <ranger@gentoo.org> baselayout-2.1-r1.ebuild:
|
||||
Marking baselayout-2.1-r1 ppc for bug 416655
|
||||
|
||||
21 May 2012; Jeff Horelick <jdhore@gentoo.org> baselayout-2.1-r1.ebuild:
|
||||
marked x86 per bug 416655
|
||||
|
||||
20 May 2012; Agostino Sarubbo <ago@gentoo.org> baselayout-2.1-r1.ebuild:
|
||||
Stable for amd64, wrt bug #416655
|
||||
|
||||
*baselayout-2.1-r1 (16 May 2012)
|
||||
|
||||
16 May 2012; Samuli Suominen <ssuominen@gentoo.org>
|
||||
+baselayout-2.1-r1.ebuild:
|
||||
Create /run in pkg_postinst() and warn user if it's not mounted with tmpfs
|
||||
wrt #361349
|
||||
|
||||
26 Apr 2012; Alexis Ballier <aballier@gentoo.org> baselayout-2.1.ebuild:
|
||||
keyword ~amd64-fbsd
|
||||
|
||||
01 Jan 2012; Andreas K. Huettel <dilfridge@gentoo.org> +ChangeLog-2008:
|
||||
Split ChangeLog.
|
||||
|
||||
09 Dec 2011; Mike Frysinger <vapier@gentoo.org> baselayout-2.1.ebuild:
|
||||
Also ignore warnings when trying to delete old .keep files if the rcscripts/
|
||||
path doesn't even exist.
|
||||
|
||||
21 Nov 2011; Mike Frysinger <vapier@gentoo.org> baselayout-2.1.ebuild:
|
||||
Trim old baselayout-1 dirs in /lib/.
|
||||
|
||||
11 Oct 2011; Mike Frysinger <vapier@gentoo.org> baselayout-2.1.ebuild:
|
||||
Make sure we apply the lib32 de-hack to only the arches where said hack was
|
||||
put into place #386821 by Jim Faulkner.
|
||||
|
||||
09 Oct 2011; Mike Frysinger <vapier@gentoo.org> baselayout-2.1.ebuild:
|
||||
Add sanity check for $DEFAULT_ABI #385993 by Christian Samsel.
|
||||
|
||||
04 Oct 2011; Mike Frysinger <vapier@gentoo.org> baselayout-2.1.ebuild:
|
||||
Try to make error output a little more understandable #385625 by Paul Varner.
|
||||
|
||||
*baselayout-2.1 (03 Oct 2011)
|
||||
|
||||
03 Oct 2011; Mike Frysinger <vapier@gentoo.org> +baselayout-2.1.ebuild:
|
||||
Version bump and multilib overhaul.
|
||||
|
||||
04 Sep 2011; William Hubbs <williamh@gentoo.org>
|
||||
-baselayout-1.12.14-r1.ebuild, -files/baselayout-1.12.14-iproute.patch:
|
||||
Remove baselayout-1 from the tree
|
||||
|
||||
04 Sep 2011; William Hubbs <williamh@gentoo.org>
|
||||
-files/baselayout-2.0.1-proc_touch.patch:
|
||||
remove old patch
|
||||
|
||||
10 Aug 2011; William Hubbs <williamh@gentoo.org> -baselayout-2.0.1-r1.ebuild,
|
||||
-baselayout-2.0.2.ebuild:
|
||||
remove old 2.0 versions
|
||||
|
||||
24 Jul 2011; Markos Chandras <hwoarang@gentoo.org> baselayout-2.0.3.ebuild:
|
||||
Stable on amd64 wrt bug #375771
|
||||
|
||||
24 Jul 2011; Mark Loeser <halcy0n@gentoo.org> baselayout-2.0.3.ebuild:
|
||||
Stable for ppc/ppc64; bug #375771
|
||||
|
||||
24 Jul 2011; Raúl Porcel <armin76@gentoo.org> baselayout-2.0.3.ebuild:
|
||||
alpha/arm/ia64/m68k/s390/sh/sparc/x86 stable wrt #375771
|
||||
|
||||
22 Jul 2011; Jeroen Roovers <jer@gentoo.org> baselayout-2.0.3.ebuild:
|
||||
Stable for HPPA (bug #375771).
|
||||
|
||||
08 Jul 2011; Samuli Suominen <ssuominen@gentoo.org>
|
||||
baselayout-1.12.14-r1.ebuild, baselayout-2.0.1-r1.ebuild,
|
||||
baselayout-2.0.2.ebuild, baselayout-2.0.3.ebuild:
|
||||
Convert from "hasq" to "has".
|
||||
|
||||
02 Jul 2011; William Hubbs <williamh@gentoo.org> baselayout-2.0.3.ebuild:
|
||||
drop reference to kernel_linux from IUSE
|
||||
|
||||
02 Jul 2011; William Hubbs <williamh@gentoo.org> baselayout-2.0.3.ebuild:
|
||||
Makedev is now part of stage 1 so we dont need the dependency at all
|
||||
#368597.
|
||||
|
||||
02 Jul 2011; William Hubbs <williamh@gentoo.org> baselayout-2.0.3.ebuild:
|
||||
Only depend on makedev for linux and when stages are being built #368597.
|
||||
|
||||
28 Jun 2011; Mike Frysinger <vapier@gentoo.org> baselayout-2.0.2.ebuild:
|
||||
Mark m68k/s390 stable #295613.
|
||||
|
||||
19 Jun 2011; Mike Frysinger <vapier@gentoo.org> baselayout-2.0.3.ebuild:
|
||||
Pull in makedev again #368597.
|
||||
|
||||
*baselayout-2.0.3 (18 Jun 2011)
|
||||
|
||||
18 Jun 2011; Mike Frysinger <vapier@gentoo.org> +baselayout-2.0.3.ebuild:
|
||||
Install more dirs when USE=build #371280.
|
||||
|
||||
13 May 2011; Raúl Porcel <armin76@gentoo.org> baselayout-2.0.2.ebuild:
|
||||
alpha/arm/ia64/sh/sparc stable wrt #295613
|
||||
|
||||
12 May 2011; Joseph Jezak <josejx@gentoo.org> baselayout-2.0.2.ebuild:
|
||||
Marked ppc/ppc64 stable for bug #295613.
|
||||
|
||||
09 May 2011; Jeroen Roovers <jer@gentoo.org> baselayout-2.0.2.ebuild:
|
||||
Stable for HPPA (bug #295613).
|
||||
|
||||
08 May 2011; Pacho Ramos <pacho@gentoo.org> baselayout-2.0.2.ebuild:
|
||||
amd64 stable, bug 295613
|
||||
|
||||
08 May 2011; Christian Faulhammer <fauli@gentoo.org> baselayout-2.0.2.ebuild:
|
||||
stable x86, bug 295613
|
||||
|
||||
*baselayout-2.0.2 (18 Mar 2011)
|
||||
|
||||
18 Mar 2011; Mike Frysinger <vapier@gentoo.org> +baselayout-2.0.2.ebuild:
|
||||
Version bump.
|
||||
|
||||
13 Dec 2010; Mike Frysinger <vapier@gentoo.org>
|
||||
baselayout-2.0.1-r1.ebuild:
|
||||
Redo how we handle forced gentoo-release update so we avoid md5/mtime
|
||||
mismatches with CONTENTS.
|
||||
|
||||
05 Dec 2010; Raúl Porcel <armin76@gentoo.org> baselayout-1.12.14-r1.ebuild:
|
||||
alpha/arm/ia64/m68k/s390/sh/sparc stable wrt #343925
|
||||
|
||||
29 Nov 2010; Brent Baude <ranger@gentoo.org> baselayout-1.12.14-r1.ebuild:
|
||||
stable ppc64, bug 343925
|
||||
|
||||
20 Nov 2010; Mike Frysinger <vapier@gentoo.org>
|
||||
baselayout-1.12.14-r1.ebuild:
|
||||
Update dhcpcd blocker #345943 by Brendan Shanks.
|
||||
|
||||
05 Nov 2010; Markos Chandras <hwoarang@gentoo.org>
|
||||
baselayout-1.12.14-r1.ebuild:
|
||||
Stable on amd64 wrt bug #343925
|
||||
|
||||
05 Nov 2010; Pawel Hajdan jr <phajdan.jr@gentoo.org>
|
||||
baselayout-1.12.14-r1.ebuild:
|
||||
x86 stable wrt bug #343925
|
||||
|
||||
05 Nov 2010; Jeroen Roovers <jer@gentoo.org> baselayout-1.12.14-r1.ebuild:
|
||||
Stable for HPPA PPC (bug #343925).
|
||||
|
||||
*baselayout-2.0.1-r1 (04 Nov 2010)
|
||||
|
||||
04 Nov 2010; Samuli Suominen <ssuominen@gentoo.org>
|
||||
+baselayout-2.0.1-r1.ebuild, +files/baselayout-2.0.1-proc_touch.patch:
|
||||
Fix Stage1 building wrt #232823 by Mike Frysinger.
|
||||
|
||||
08 Oct 2010; Mart Raudsepp <leio@gentoo.org> baselayout-1.11.15-r3.ebuild:
|
||||
Drop to ~mips
|
||||
|
||||
*baselayout-1.12.14-r1 (03 Oct 2010)
|
||||
|
||||
03 Oct 2010; Mike Frysinger <vapier@gentoo.org>
|
||||
+baselayout-1.12.14-r1.ebuild, +files/baselayout-1.12.14-iproute.patch:
|
||||
Fix infinite recursion with ip invocation #339013 by Krzysztof Olędzki.
|
||||
|
||||
*baselayout-1.12.14 (26 Sep 2010)
|
||||
|
||||
26 Sep 2010; Mike Frysinger <vapier@gentoo.org>
|
||||
+baselayout-1.12.14.ebuild:
|
||||
Version bump.
|
||||
|
||||
15 Jan 2010; Mike Frysinger <vapier@gentoo.org> baselayout-2.0.1.ebuild:
|
||||
Only remove world bits from shadow #271974 by Nils Wisiol.
|
||||
|
||||
20 Nov 2009; Raúl Porcel <armin76@gentoo.org> baselayout-1.12.13.ebuild:
|
||||
alpha/ia64/sparc stable wrt #290537
|
||||
|
||||
17 Nov 2009; Brent Baude <ranger@gentoo.org> baselayout-1.12.13.ebuild:
|
||||
Marking baselayout-1.12.13 ppc64 for bug 290537
|
||||
|
||||
11 Nov 2009; Jeroen Roovers <jer@gentoo.org> baselayout-1.12.13.ebuild:
|
||||
Stable for HPPA (bug #290537).
|
||||
|
||||
04 Nov 2009; Markus Meier <maekke@gentoo.org> baselayout-1.12.13.ebuild:
|
||||
amd64/x86 stable, bug #290537
|
||||
|
||||
01 Nov 2009; nixnut <nixnut@gentoo.org> baselayout-1.12.13.ebuild:
|
||||
ppc stable #290537
|
||||
|
||||
*baselayout-1.12.13 (11 Oct 2009)
|
||||
|
||||
11 Oct 2009; Mike Frysinger <vapier@gentoo.org>
|
||||
+baselayout-1.12.13.ebuild:
|
||||
Version bump.
|
||||
|
||||
*baselayout-2.0.1 (24 May 2009)
|
||||
|
||||
24 May 2009; Mike Frysinger <vapier@gentoo.org> +baselayout-2.0.1.ebuild:
|
||||
Rename modprobe files and fix some comments.
|
||||
|
||||
02 Mar 2009; Benedikt Böhm <hollow@gentoo.org> baselayout-2.0.0.ebuild:
|
||||
fix /etc/shadow permissions when building stages
|
||||
|
||||
For older entries, please see ChangeLog-2008.
|
||||
2738
sdk_container/src/third_party/portage-stable/sys-apps/baselayout/ChangeLog-2008
vendored
Normal file
2738
sdk_container/src/third_party/portage-stable/sys-apps/baselayout/ChangeLog-2008
vendored
Normal file
File diff suppressed because it is too large
Load Diff
20
sdk_container/src/third_party/portage-stable/sys-apps/baselayout/Manifest
vendored
Normal file
20
sdk_container/src/third_party/portage-stable/sys-apps/baselayout/Manifest
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA256
|
||||
|
||||
DIST baselayout-2.0.3.tar.bz2 39969 SHA256 879308781d845f467eb2b45b9ff006aa799e943f45ddba518f43acae1ec84bdd SHA512 d95a6eaecb6fb92a3a91bcfeacaf4071261058ef6cd2165c63497f514989a41afde1c28ff0571e2945a844d97822e5e463ab4793aa2ff8d181168d491ef5b297 WHIRLPOOL 50101ce1cf729fc117846ec480e0714625383f6d8bed77dcbd01e38ae07410549a2b62a9e8c285624c7cbdf5dc2116c0f1bd5033dcd7defab1bdf1f842c99862
|
||||
DIST baselayout-2.1.tar.bz2 40398 SHA256 2ac6f2156513a2820a0eeeecc2cf7e7c0b5e0c750b324f1e21912d5f3cda4956 SHA512 3a7ab13eb0cb75bd96ceab652f6a2848edb93285eaec1993257531bc19a8c9705b82e9928929048df4ad6023bc13eb2f40b15cae63e6a94e316a772fdbae6313 WHIRLPOOL edddd31366baf3b90c7f9d15e4a0ec7b25dcd2820058bc83132ac45c2a48630003f9c7e983283752e6b3f7be4a6d545047461d4f04deb807d2b2a91fd278de35
|
||||
DIST baselayout-2.2.tar.bz2 40744 SHA256 11d4a223b06da545c3e59e07c9195570f334b5b1be05d995df0ebc8ea2203e98 SHA512 a5199c42e835d9f2683cc94f3c4c47ecdc392316c24e0932845736e2e90479b0c5c8ad72ead8e0537f097405b7d7548d00b87b7ff8c9e3651486e3c5c0970b36 WHIRLPOOL 60cc4f7f76c5a45c15303e526decffb3bad2b50ac659b1dd072d2ed4b0eb0b31929a1a733ddb03a31ee5882b889a4efb87206f63ffaa2b11e26d36afd0933a95
|
||||
EBUILD baselayout-2.0.3.ebuild 7366 SHA256 e72e760fbc2452212fee89e5f4c00437b11d7973b5c27933c58481e9a656f5a4 SHA512 f1608644605f1bf067d7c70b9e137d9cd247a9cbb8a12bd49d263ea9f6de15e649305807b54fcf93f4b7f3d61aa58a4aff9bdb3e4a3471cae21a8deac99a53ac WHIRLPOOL ca3e8e4ce7243906a5d73180f54a276b4759997f07e9b37b606b8c95f9d0a2e1ec7e0d24f79f438c3077bc35c2ca43b901658194b90d7009da36590493b2addd
|
||||
EBUILD baselayout-2.1-r1.ebuild 8163 SHA256 545773c126bde35ae593c3704b1d4f1ccc5020ffd032d505e4e1d33e6163bfd5 SHA512 5c73a5b2cbf34c3e15bedd454eeb236861d1683c01c017eecc37615bc5fbbceac12974fbe3d8cc41ce5a6a3dceb0d3e7fbcca606e34f02ad22b1c443ab1d6ecd WHIRLPOOL 7e1525a1743b5eea804aeb456be07bbc2b2719a119f77bbfa4a89b8ca9794d99ba9d5ec73a394c3bf15b22b1c55f98468880533cea312ff3195fc33f9698eac0
|
||||
EBUILD baselayout-2.1.ebuild 7873 SHA256 919fcf660f37ea4b8b32d9688926ad618ea92fb13743f630dd2352bd215c714d SHA512 71a17a7e75f021b871c72271b4090c954075b3b3d115b987820bfc05d8a5f84b8975902bfe7bfeaba46fb03f9eba8936af96d5e407624f1cd927e4144388c62f WHIRLPOOL 559641ddc94b3287bd520530252247de18c950de555ccd7d69a4e4bf8e1e4be47bd2fb448fedacd4224f163382f438c4292d71b89ab0d2cec98c3b82a9c35704
|
||||
EBUILD baselayout-2.2.ebuild 8235 SHA256 c8245758d6c0be8ceea2818f7c264fdc9c6d57aa447ab23d3e2c7bfcec96d2f8 SHA512 6c546f990cdd0ffa182659906f0931c45e7ee74650f40338292da45f9378f30d5eb34fb5b263f05b1b0a1c30f08abf070190e67e7d8e27322f36ce54ff25a176 WHIRLPOOL 6d44e1684c19c5cdca285f9c3a089cbf6583bfb4f2b350728ef50a73de6b1146ec3910839b97b646f748eac9f29c5beb917e28ffee2b58d186b9deacd2470994
|
||||
MISC ChangeLog 8280 SHA256 45e7a092cefa3174061c67124a82510a0b1a8888f2e9692da5149295d666bf33 SHA512 dbd9a8c4dd0d1ee183e684ae3725f27330b180509aff13660f189c50cd10581313545643cbcd082dfea651e83829da2d95a8a0853b0bd64aace67ef226dde4ec WHIRLPOOL fe6f807264e1d1e799846e3f44e1b4b10ef7b7b3e06ea2b9460744f352e0623010b49ef49d624d5a32a158dcdf9af76cc9293bf7562e7bdd1db687508753f066
|
||||
MISC ChangeLog-2008 102096 SHA256 ce58cd95dfef4fe9bb8b2c024532167683d0802f7f5fc4e153d12db6440791a4 SHA512 74acd5a57af73da3694ba5c42fee9735f82ee727535abcd20ccc424bc70daf449d84d1b90015b5865c44b46620758944b500872081226dc1cb68c9c342400347 WHIRLPOOL d0efd81f8c0dfe9ce4626e2f1ed0e94051d4f6f823fbad7bc3507313e92d7cae139f7e5368d86c388c98c9242775d39a1bce32543708b9036b62f8ef9dee5360
|
||||
MISC metadata.xml 164 SHA256 f5f2891f2a4791cd31350bb2bb572131ad7235cd0eeb124c9912c187ac10ce92 SHA512 8eb0d5153d388f6ea069c64b93882244816a0a09aecc0d73cb872121ce0eb24c5ccafa96aad0b620b2300f319e1af101fa7fa6c5d0d561719d49bb07da0a2eca WHIRLPOOL 11a1441bddb7a6c69653c663902b7da5767ae6ad515ac2aabfc42fe37927a1ccc21472deeee454009ff720201a41c3e4a912df42661a0a87150fb46126da2d52
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
Version: GnuPG v2.0.19 (GNU/Linux)
|
||||
|
||||
iEYEAREIAAYFAlB5vnsACgkQvFcC4BYPU0rKiQCglJI/koo9c7mJqTGt8FQj+xci
|
||||
6kAAn1yMPtl1xtGWlDvViwZqM+P3x2MT
|
||||
=Th6T
|
||||
-----END PGP SIGNATURE-----
|
||||
216
sdk_container/src/third_party/portage-stable/sys-apps/baselayout/baselayout-2.0.3.ebuild
vendored
Normal file
216
sdk_container/src/third_party/portage-stable/sys-apps/baselayout/baselayout-2.0.3.ebuild
vendored
Normal file
@ -0,0 +1,216 @@
|
||||
# Copyright 1999-2011 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-2.0.3.ebuild,v 1.10 2011/07/24 21:21:31 hwoarang Exp $
|
||||
|
||||
inherit eutils multilib
|
||||
|
||||
DESCRIPTION="Filesystem baselayout and init scripts"
|
||||
HOMEPAGE="http://www.gentoo.org/"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.bz2
|
||||
http://dev.gentoo.org/~vapier/dist/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="build"
|
||||
|
||||
PDEPEND="sys-apps/openrc"
|
||||
|
||||
pkg_preinst() {
|
||||
# Bug #217848 - Since the remap_dns_vars() called by pkg_preinst() of
|
||||
# the baselayout-1.x ebuild copies all the real configs from the user's
|
||||
# /etc/conf.d into ${D}, it makes them all appear to be the default
|
||||
# versions. In order to protect them from being unmerged after this
|
||||
# upgrade, modify their timestamps.
|
||||
touch "${ROOT}"/etc/conf.d/* 2>/dev/null
|
||||
|
||||
# This is written in src_install (so it's in CONTENTS), but punt all
|
||||
# pending updates to avoid user having to do etc-update (and make the
|
||||
# pkg_postinst logic simpler).
|
||||
rm -f "${ROOT}"/etc/._cfg????_gentoo-release
|
||||
|
||||
# We need to install directories and maybe some dev nodes when building
|
||||
# stages, but they cannot be in CONTENTS.
|
||||
# Also, we cannot reference $S as binpkg will break so we do this.
|
||||
if use build ; then
|
||||
local libdirs="$(get_all_libdirs)" dir=
|
||||
# Create our multilib dirs - the Makefile has no knowledge of this
|
||||
: ${libdirs:=lib} # it isn't that we don't trust multilib.eclass...
|
||||
for dir in ${libdirs}; do
|
||||
mkdir -p "${ROOT}${dir}"
|
||||
touch "${ROOT}${dir}"/.keep
|
||||
mkdir -p "${ROOT}usr/${dir}"
|
||||
touch "${ROOT}usr/${dir}"/.keep
|
||||
mkdir -p "${ROOT}usr/local/${dir}"
|
||||
touch "${ROOT}usr/local/${dir}"/.keep
|
||||
done
|
||||
|
||||
# Create symlinks for /lib, /usr/lib, and /usr/local/lib and
|
||||
# merge contents of duplicate directories if necessary.
|
||||
# Only do this when $ROOT != / since it should only be necessary
|
||||
# when merging to an empty $ROOT, and it's not very safe to perform
|
||||
# this operation when $ROOT = /.
|
||||
if [ "${SYMLINK_LIB}" = yes ] && [ "$ROOT" != / ] ; then
|
||||
local prefix libabi=$(get_abi_LIBDIR $DEFAULT_ABI)
|
||||
for prefix in "$ROOT"{,usr/,usr/local/} ; do
|
||||
|
||||
[ ! -d "${prefix}lib" ] && rm -f "${prefix}lib" && \
|
||||
mkdir -p "${prefix}lib"
|
||||
|
||||
[ ! -d "$prefix$libabi" ] && ln -sf "${prefix}lib"
|
||||
|
||||
[ -h "$prefix$libabi" ] && [ -d "${prefix}lib" ] && \
|
||||
[ "$prefix$libabi" -ef "${prefix}lib" ] && continue
|
||||
|
||||
local destdir=$prefix$libabi/ srcdir=${prefix}lib/
|
||||
|
||||
[ -d "$destdir" ] || die "unable to create '$destdir'"
|
||||
[ -d "$srcdir" ] || die "unable to create $srcdir"
|
||||
|
||||
mv -f "$srcdir".keep "$destdir".keep 2>/dev/null
|
||||
if ! rmdir "$srcdir" 2>/dev/null ; then
|
||||
ewarn "merging contents of '$srcdir' into '$destdir':"
|
||||
|
||||
# Move directories if the dest doesn't exist.
|
||||
find "$srcdir" -type d -print0 | \
|
||||
while read -d $'\0' src ; do
|
||||
|
||||
# If a parent directory of $src has already
|
||||
# been merged then it will no longer exist.
|
||||
[ -d "$src" ] || continue
|
||||
|
||||
dest=$destdir${src#${srcdir}}
|
||||
if [ ! -d "$dest" ] ; then
|
||||
if [ -e "$dest" ] ; then
|
||||
ewarn " not overwriting file '$dest'" \
|
||||
"with directory '$src'"
|
||||
continue
|
||||
fi
|
||||
mv -f "$src" "$dest" && \
|
||||
ewarn " /${src#${ROOT}} merged" || \
|
||||
ewarn " /${src#${ROOT}} not merged"
|
||||
fi
|
||||
done
|
||||
|
||||
# Move non-directories.
|
||||
find "$srcdir" ! -type d -print0 | \
|
||||
while read -d $'\0' src ; do
|
||||
dest=$destdir${src#${srcdir}}
|
||||
if [ -e "$dest" ] ; then
|
||||
if [ -d "$dest" ] ; then
|
||||
ewarn " not overwriting directory '$dest'" \
|
||||
"with file '$src'"
|
||||
else
|
||||
if [ -f "$src" -a ! -s "$src" ] && \
|
||||
[ -f "$dest" -a ! -s "$dest" ] ; then
|
||||
# Ignore empty files such as '.keep'.
|
||||
true
|
||||
else
|
||||
ewarn " not overwriting file '$dest'" \
|
||||
"with file '$src'"
|
||||
fi
|
||||
fi
|
||||
continue
|
||||
fi
|
||||
|
||||
mv -f "$src" "$dest" && \
|
||||
ewarn " /${src#${ROOT}} merged" || \
|
||||
ewarn " /${src#${ROOT}} not merged"
|
||||
done
|
||||
fi
|
||||
|
||||
rm -rf "${prefix}lib" || \
|
||||
die "unable to remove '${prefix}lib'"
|
||||
|
||||
ln -s "$libabi" "${prefix}lib" || \
|
||||
die "unable to create '${prefix}lib' symlink"
|
||||
done
|
||||
fi
|
||||
|
||||
emake -C "${D}/usr/share/${PN}" DESTDIR="${ROOT}" layout || die "failed to layout filesystem"
|
||||
fi
|
||||
rm -f "${D}"/usr/share/${PN}/Makefile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local libdir="lib"
|
||||
[[ ${SYMLINK_LIB} == "yes" ]] && libdir=$(get_abi_LIBDIR "${DEFAULT_ABI}")
|
||||
|
||||
emake \
|
||||
OS=$(use kernel_FreeBSD && echo BSD || echo Linux) \
|
||||
LIB=${libdir} \
|
||||
DESTDIR="${D}" \
|
||||
install || die
|
||||
dodoc ChangeLog.svn
|
||||
|
||||
# need the makefile in pkg_preinst
|
||||
insinto /usr/share/${PN}
|
||||
doins Makefile || die
|
||||
|
||||
# Should this belong in another ebuild? Like say binutils?
|
||||
# List all the multilib libdirs in /etc/env/04multilib (only if they're
|
||||
# actually different from the normal
|
||||
if has_multilib_profile || [ $(get_libdir) != "lib" -o -n "${CONF_MULTILIBDIR}" ]; then
|
||||
local libdirs="$(get_all_libdirs)" libdirs_env= dir=
|
||||
: ${libdirs:=lib} # it isn't that we don't trust multilib.eclass...
|
||||
for dir in ${libdirs}; do
|
||||
libdirs_env=${libdirs_env:+$libdirs_env:}/${dir}:/usr/${dir}:/usr/local/${dir}
|
||||
done
|
||||
|
||||
# Special-case uglyness... For people updating from lib32 -> lib amd64
|
||||
# profiles, keep lib32 in the search path while it's around
|
||||
if has_multilib_profile && [ -d "${ROOT}"lib32 -o -d "${ROOT}"lib32 ] && ! has lib32 ${libdirs}; then
|
||||
libdirs_env="${libdirs_env}:/lib32:/usr/lib32:/usr/local/lib32"
|
||||
fi
|
||||
echo "LDPATH=\"${libdirs_env}\"" > "${T}"/04multilib
|
||||
doenvd "${T}"/04multilib
|
||||
fi
|
||||
|
||||
# rc-scripts version for testing of features that *should* be present
|
||||
echo "Gentoo Base System release ${PV}" > "${D}"/etc/gentoo-release
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local x
|
||||
|
||||
# We installed some files to /usr/share/baselayout instead of /etc to stop
|
||||
# (1) overwriting the user's settings
|
||||
# (2) screwing things up when attempting to merge files
|
||||
# (3) accidentally packaging up personal files with quickpkg
|
||||
# If they don't exist then we install them
|
||||
for x in master.passwd passwd shadow group fstab ; do
|
||||
[ -e "${ROOT}etc/${x}" ] && continue
|
||||
[ -e "${ROOT}usr/share/baselayout/${x}" ] || continue
|
||||
cp -p "${ROOT}usr/share/baselayout/${x}" "${ROOT}"etc
|
||||
done
|
||||
|
||||
# Force shadow permissions to not be world-readable #260993
|
||||
for x in shadow ; do
|
||||
[ -e "${ROOT}etc/${x}" ] && chmod o-rwx "${ROOT}etc/${x}"
|
||||
done
|
||||
|
||||
# Take care of the etc-update for the user
|
||||
if [ -e "${ROOT}"/etc/._cfg0000_gentoo-release ] ; then
|
||||
mv "${ROOT}"/etc/._cfg0000_gentoo-release "${ROOT}"/etc/gentoo-release
|
||||
fi
|
||||
|
||||
# whine about users that lack passwords #193541
|
||||
if [[ -e ${ROOT}/etc/shadow ]] ; then
|
||||
local bad_users=$(sed -n '/^[^:]*::/s|^\([^:]*\)::.*|\1|p' "${ROOT}"/etc/shadow)
|
||||
if [[ -n ${bad_users} ]] ; then
|
||||
echo
|
||||
ewarn "The following users lack passwords!"
|
||||
ewarn ${bad_users}
|
||||
fi
|
||||
fi
|
||||
|
||||
# whine about users with invalid shells #215698
|
||||
if [[ -e ${ROOT}/etc/passwd ]] ; then
|
||||
local bad_shells=$(awk -F: 'system("test -e " $7) { print $1 " - " $7}' /etc/passwd | sort)
|
||||
if [[ -n ${bad_shells} ]] ; then
|
||||
echo
|
||||
ewarn "The following users have non-existent shells!"
|
||||
ewarn "${bad_shells}"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
231
sdk_container/src/third_party/portage-stable/sys-apps/baselayout/baselayout-2.1-r1.ebuild
vendored
Normal file
231
sdk_container/src/third_party/portage-stable/sys-apps/baselayout/baselayout-2.1-r1.ebuild
vendored
Normal file
@ -0,0 +1,231 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-2.1-r1.ebuild,v 1.11 2012/08/23 21:47:35 vapier Exp $
|
||||
|
||||
inherit eutils multilib
|
||||
|
||||
DESCRIPTION="Filesystem baselayout and init scripts"
|
||||
HOMEPAGE="http://www.gentoo.org/"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.bz2
|
||||
http://dev.gentoo.org/~vapier/dist/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="build kernel_linux"
|
||||
|
||||
PDEPEND="sys-apps/openrc"
|
||||
|
||||
# Create our multilib dirs - the Makefile has no knowledge of this
|
||||
multilib_warn() {
|
||||
local syms=$1 dirs=$2 def_libdir=$3
|
||||
|
||||
[ -z "${syms}${dirs}" ] && return
|
||||
|
||||
ewarn "Your system profile has SYMLINK_LIB=${SYMLINK_LIB}, so that means"
|
||||
if [ -z "${syms}" ] ; then
|
||||
ewarn "you need to have these paths as symlinks to ${def_libdir}:"
|
||||
ewarn "$1"
|
||||
fi
|
||||
}
|
||||
multilib_layout() {
|
||||
local libdir libdirs=$(get_all_libdirs) def_libdir=$(get_abi_LIBDIR $DEFAULT_ABI)
|
||||
: ${libdirs:=lib} # it isn't that we don't trust multilib.eclass...
|
||||
|
||||
[ -z "${def_libdir}" ] && die "your DEFAULT_ABI=$DEFAULT_ABI appears to be invalid"
|
||||
|
||||
# figure out which paths should be symlinks and which should be directories
|
||||
local dirs syms exp d
|
||||
for libdir in ${libdirs} ; do
|
||||
exp=( {,usr/,usr/local/}${libdir} )
|
||||
for d in "${exp[@]/#/${ROOT}}" ; do
|
||||
# most things should be dirs
|
||||
if [ "${SYMLINK_LIB}" = "yes" ] && [ "${libdir}" = "lib" ] ; then
|
||||
[ ! -h "${d}" ] && [ -e "${d}" ] && dirs+=" ${d}"
|
||||
else
|
||||
[ -h "${d}" ] && syms+=" ${d}"
|
||||
fi
|
||||
done
|
||||
done
|
||||
if [ -n "${syms}${dirs}" ] ; then
|
||||
ewarn "Your system profile has SYMLINK_LIB=${SYMLINK_LIB:-no}, so that means you need to"
|
||||
ewarn "have these paths configured as follows:"
|
||||
[ -n "${dirs}" ] && ewarn "symlinks to '${def_libdir}':${dirs}"
|
||||
[ -n "${syms}" ] && ewarn "directories:${syms}"
|
||||
ewarn "The ebuild will attempt to fix these, but only for trivial conversions."
|
||||
ewarn "If things fail, you will need to manually create/move the directories."
|
||||
echo
|
||||
fi
|
||||
|
||||
# setup symlinks and dirs where we expect them to be; do not migrate
|
||||
# data ... just fall over in that case.
|
||||
local prefix
|
||||
for prefix in "${ROOT}"{,usr/,usr/local/} ; do
|
||||
if [ "${SYMLINK_LIB}" = yes ] ; then
|
||||
# we need to make sure "lib" points to the native libdir
|
||||
if [ -h "${prefix}lib" ] ; then
|
||||
# it's already a symlink! assume it's pointing to right place ...
|
||||
continue
|
||||
elif [ -d "${prefix}lib" ] ; then
|
||||
# "lib" is a dir, so need to convert to a symlink
|
||||
ewarn "Converting ${prefix}lib from a dir to a symlink"
|
||||
rm -f "${prefix}lib"/.keep
|
||||
if rmdir "${prefix}lib" 2>/dev/null ; then
|
||||
ln -s ${def_libdir} "${prefix}lib" || die
|
||||
else
|
||||
die "non-empty dir found where we needed a symlink: ${prefix}lib"
|
||||
fi
|
||||
else
|
||||
# nothing exists, so just set it up sanely
|
||||
ewarn "Initializing ${prefix}lib as a symlink"
|
||||
mkdir -p "${prefix}" || die
|
||||
rm -f "${prefix}lib" || die
|
||||
ln -s ${def_libdir} "${prefix}lib" || die
|
||||
mkdir -p "${prefix}${def_libdir}" #423571
|
||||
fi
|
||||
else
|
||||
# we need to make sure "lib" is a dir
|
||||
if [ -h "${prefix}lib" ] ; then
|
||||
# "lib" is a symlink, so need to convert to a dir
|
||||
ewarn "Converting ${prefix}lib from a symlink to a dir"
|
||||
rm -f "${prefix}lib" || die
|
||||
if [ -d "${prefix}lib32" ] ; then
|
||||
ewarn "Migrating ${prefix}lib32 to ${prefix}lib"
|
||||
mv "${prefix}lib32" "${prefix}lib" || die
|
||||
else
|
||||
mkdir -p "${prefix}lib" || die
|
||||
fi
|
||||
elif [ -d "${prefix}lib" ] ; then
|
||||
# make sure the old "lib" ABI location does not exist; we
|
||||
# only symlinked the lib dir on systems where we moved it
|
||||
# to "lib32" ...
|
||||
case ${CHOST} in
|
||||
i?86*|x86_64*|powerpc*|sparc*|s390*)
|
||||
if [ -d "${prefix}lib32" ] ; then
|
||||
rm -f "${prefix}lib32"/.keep
|
||||
if ! rmdir "${prefix}lib32" 2>/dev/null ; then
|
||||
ewarn "You need to merge ${prefix}lib32 into ${prefix}lib"
|
||||
die "non-empty dir found where there should be none: ${prefix}lib32"
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
else
|
||||
# nothing exists, so just set it up sanely
|
||||
ewarn "Initializing ${prefix}lib as a dir"
|
||||
mkdir -p "${prefix}" || die
|
||||
rm -f "${prefix}lib" || die
|
||||
ln -s ${def_libdir} "${prefix}lib" || die
|
||||
fi
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# Bug #217848 - Since the remap_dns_vars() called by pkg_preinst() of
|
||||
# the baselayout-1.x ebuild copies all the real configs from the user's
|
||||
# /etc/conf.d into ${D}, it makes them all appear to be the default
|
||||
# versions. In order to protect them from being unmerged after this
|
||||
# upgrade, modify their timestamps.
|
||||
touch "${ROOT}"/etc/conf.d/* 2>/dev/null
|
||||
|
||||
# This is written in src_install (so it's in CONTENTS), but punt all
|
||||
# pending updates to avoid user having to do etc-update (and make the
|
||||
# pkg_postinst logic simpler).
|
||||
rm -f "${ROOT}"/etc/._cfg????_gentoo-release
|
||||
|
||||
# We need to install directories and maybe some dev nodes when building
|
||||
# stages, but they cannot be in CONTENTS.
|
||||
# Also, we cannot reference $S as binpkg will break so we do this.
|
||||
#multilib_layout
|
||||
if use build ; then
|
||||
emake -C "${D}/usr/share/${PN}" DESTDIR="${ROOT}" layout || die
|
||||
fi
|
||||
rm -f "${D}"/usr/share/${PN}/Makefile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
OS=$(usex kernel_FreeBSD BSD Linux) \
|
||||
DESTDIR="${D}" \
|
||||
install || die
|
||||
dodoc ChangeLog.svn
|
||||
|
||||
# need the makefile in pkg_preinst
|
||||
insinto /usr/share/${PN}
|
||||
doins Makefile || die
|
||||
|
||||
# handle multilib paths. do it here because we want this behavior
|
||||
# regardless of the C library that you're using. we do explicitly
|
||||
# list paths which the native ldconfig searches, but this isn't
|
||||
# problematic as it doesn't change the resulting ld.so.cache or
|
||||
# take longer to generate. similarly, listing both the native
|
||||
# path and the symlinked path doesn't change the resulting cache.
|
||||
local libdir ldpaths
|
||||
for libdir in $(get_all_libdirs) ; do
|
||||
ldpaths+=":/${libdir}:/usr/${libdir}:/usr/local/${libdir}"
|
||||
done
|
||||
echo "LDPATH='${ldpaths#:}'" >> "${D}"/etc/env.d/00basic
|
||||
|
||||
# rc-scripts version for testing of features that *should* be present
|
||||
echo "Gentoo Base System release ${PV}" > "${D}"/etc/gentoo-release
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local x
|
||||
|
||||
# We installed some files to /usr/share/baselayout instead of /etc to stop
|
||||
# (1) overwriting the user's settings
|
||||
# (2) screwing things up when attempting to merge files
|
||||
# (3) accidentally packaging up personal files with quickpkg
|
||||
# If they don't exist then we install them
|
||||
for x in master.passwd passwd shadow group fstab ; do
|
||||
[ -e "${ROOT}etc/${x}" ] && continue
|
||||
[ -e "${ROOT}usr/share/baselayout/${x}" ] || continue
|
||||
cp -p "${ROOT}usr/share/baselayout/${x}" "${ROOT}"etc
|
||||
done
|
||||
|
||||
# Force shadow permissions to not be world-readable #260993
|
||||
for x in shadow ; do
|
||||
[ -e "${ROOT}etc/${x}" ] && chmod o-rwx "${ROOT}etc/${x}"
|
||||
done
|
||||
|
||||
# Take care of the etc-update for the user
|
||||
if [ -e "${ROOT}"/etc/._cfg0000_gentoo-release ] ; then
|
||||
mv "${ROOT}"/etc/._cfg0000_gentoo-release "${ROOT}"/etc/gentoo-release
|
||||
fi
|
||||
|
||||
# whine about users that lack passwords #193541
|
||||
if [[ -e ${ROOT}/etc/shadow ]] ; then
|
||||
local bad_users=$(sed -n '/^[^:]*::/s|^\([^:]*\)::.*|\1|p' "${ROOT}"/etc/shadow)
|
||||
if [[ -n ${bad_users} ]] ; then
|
||||
echo
|
||||
ewarn "The following users lack passwords!"
|
||||
ewarn ${bad_users}
|
||||
fi
|
||||
fi
|
||||
|
||||
# baselayout leaves behind a lot of .keep files, so let's clean them up
|
||||
find "${ROOT}"/lib*/rcscripts/ -name .keep -exec rm -f {} + 2>/dev/null
|
||||
find "${ROOT}"/lib*/rcscripts/ -depth -type d -exec rmdir {} + 2>/dev/null
|
||||
|
||||
# whine about users with invalid shells #215698
|
||||
if [[ -e ${ROOT}/etc/passwd ]] ; then
|
||||
local bad_shells=$(awk -F: 'system("test -e " $7) { print $1 " - " $7}' /etc/passwd | sort)
|
||||
if [[ -n ${bad_shells} ]] ; then
|
||||
echo
|
||||
ewarn "The following users have non-existent shells!"
|
||||
ewarn "${bad_shells}"
|
||||
fi
|
||||
fi
|
||||
|
||||
# http://bugs.gentoo.org/361349
|
||||
if use kernel_linux; then
|
||||
mkdir -p "${ROOT}"/run
|
||||
|
||||
if ! grep -qs "^tmpfs.*/run " "${ROOT}"/proc/mounts ; then
|
||||
echo
|
||||
ewarn "You should reboot the system now to get /run mounted with tmpfs!"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
224
sdk_container/src/third_party/portage-stable/sys-apps/baselayout/baselayout-2.1.ebuild
vendored
Normal file
224
sdk_container/src/third_party/portage-stable/sys-apps/baselayout/baselayout-2.1.ebuild
vendored
Normal file
@ -0,0 +1,224 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-2.1.ebuild,v 1.7 2012/04/26 14:30:49 aballier Exp $
|
||||
|
||||
inherit eutils multilib
|
||||
|
||||
DESCRIPTION="Filesystem baselayout and init scripts"
|
||||
HOMEPAGE="http://www.gentoo.org/"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.bz2
|
||||
http://dev.gentoo.org/~vapier/dist/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="build"
|
||||
|
||||
PDEPEND="sys-apps/openrc"
|
||||
|
||||
pkg_setup() {
|
||||
multilib_layout
|
||||
}
|
||||
|
||||
# Create our multilib dirs - the Makefile has no knowledge of this
|
||||
multilib_warn() {
|
||||
local syms=$1 dirs=$2 def_libdir=$3
|
||||
|
||||
[ -z "${syms}${dirs}" ] && return
|
||||
|
||||
ewarn "Your system profile has SYMLINK_LIB=${SYMLINK_LIB}, so that means"
|
||||
if [ -z "${syms}" ] ; then
|
||||
ewarn "you need to have these paths as symlinks to ${def_libdir}:"
|
||||
ewarn "$1"
|
||||
fi
|
||||
}
|
||||
multilib_layout() {
|
||||
local libdir libdirs=$(get_all_libdirs) def_libdir=$(get_abi_LIBDIR $DEFAULT_ABI)
|
||||
: ${libdirs:=lib} # it isn't that we don't trust multilib.eclass...
|
||||
|
||||
[ -z "${def_libdir}" ] && die "your DEFAULT_ABI=$DEFAULT_ABI appears to be invalid"
|
||||
|
||||
# figure out which paths should be symlinks and which should be directories
|
||||
local dirs syms exp d
|
||||
for libdir in ${libdirs} ; do
|
||||
exp=( {,usr/,usr/local/}${libdir} )
|
||||
for d in "${exp[@]/#/${ROOT}}" ; do
|
||||
# most things should be dirs
|
||||
if [ "${SYMLINK_LIB}" = "yes" ] && [ "${libdir}" = "lib" ] ; then
|
||||
[ ! -h "${d}" ] && [ -e "${d}" ] && dirs+=" ${d}"
|
||||
else
|
||||
[ -h "${d}" ] && syms+=" ${d}"
|
||||
fi
|
||||
done
|
||||
done
|
||||
if [ -n "${syms}${dirs}" ] ; then
|
||||
ewarn "Your system profile has SYMLINK_LIB=${SYMLINK_LIB:-no}, so that means you need to"
|
||||
ewarn "have these paths configured as follows:"
|
||||
[ -n "${dirs}" ] && ewarn "symlinks to '${def_libdir}':${dirs}"
|
||||
[ -n "${syms}" ] && ewarn "directories:${syms}"
|
||||
ewarn "The ebuild will attempt to fix these, but only for trivial conversions."
|
||||
ewarn "If things fail, you will need to manually create/move the directories."
|
||||
echo
|
||||
fi
|
||||
|
||||
# setup symlinks and dirs where we expect them to be; do not migrate
|
||||
# data ... just fall over in that case.
|
||||
local prefix
|
||||
for prefix in "${ROOT}"{,usr/,usr/local/} ; do
|
||||
if [ "${SYMLINK_LIB}" = yes ] ; then
|
||||
# we need to make sure "lib" points to the native libdir
|
||||
if [ -h "${prefix}lib" ] ; then
|
||||
# it's already a symlink! assume it's pointing to right place ...
|
||||
continue
|
||||
elif [ -d "${prefix}lib" ] ; then
|
||||
# "lib" is a dir, so need to convert to a symlink
|
||||
ewarn "Converting ${prefix}lib from a dir to a symlink"
|
||||
rm -f "${prefix}lib"/.keep
|
||||
if rmdir "${prefix}lib" 2>/dev/null ; then
|
||||
ln -s ${def_libdir} "${prefix}lib" || die
|
||||
else
|
||||
die "non-empty dir found where we needed a symlink: ${prefix}lib"
|
||||
fi
|
||||
else
|
||||
# nothing exists, so just set it up sanely
|
||||
ewarn "Initializing ${prefix}lib as a symlink"
|
||||
mkdir -p "${prefix}" || die
|
||||
rm -f "${prefix}lib" || die
|
||||
ln -s ${def_libdir} "${prefix}lib" || die
|
||||
fi
|
||||
else
|
||||
# we need to make sure "lib" is a dir
|
||||
if [ -h "${prefix}lib" ] ; then
|
||||
# "lib" is a symlink, so need to convert to a dir
|
||||
ewarn "Converting ${prefix}lib from a symlink to a dir"
|
||||
rm -f "${prefix}lib" || die
|
||||
if [ -d "${prefix}lib32" ] ; then
|
||||
ewarn "Migrating ${prefix}lib32 to ${prefix}lib"
|
||||
mv "${prefix}lib32" "${prefix}lib" || die
|
||||
else
|
||||
mkdir -p "${prefix}lib" || die
|
||||
fi
|
||||
elif [ -d "${prefix}lib" ] ; then
|
||||
# make sure the old "lib" ABI location does not exist; we
|
||||
# only symlinked the lib dir on systems where we moved it
|
||||
# to "lib32" ...
|
||||
case ${CHOST} in
|
||||
i?86*|x86_64*|powerpc*|sparc*|s390*)
|
||||
if [ -d "${prefix}lib32" ] ; then
|
||||
rm -f "${prefix}lib32"/.keep
|
||||
if ! rmdir "${prefix}lib32" 2>/dev/null ; then
|
||||
ewarn "You need to merge ${prefix}lib32 into ${prefix}lib"
|
||||
die "non-empty dir found where there should be none: ${prefix}lib32"
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
else
|
||||
# nothing exists, so just set it up sanely
|
||||
ewarn "Initializing ${prefix}lib as a dir"
|
||||
mkdir -p "${prefix}" || die
|
||||
rm -f "${prefix}lib" || die
|
||||
ln -s ${def_libdir} "${prefix}lib" || die
|
||||
fi
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# Bug #217848 - Since the remap_dns_vars() called by pkg_preinst() of
|
||||
# the baselayout-1.x ebuild copies all the real configs from the user's
|
||||
# /etc/conf.d into ${D}, it makes them all appear to be the default
|
||||
# versions. In order to protect them from being unmerged after this
|
||||
# upgrade, modify their timestamps.
|
||||
touch "${ROOT}"/etc/conf.d/* 2>/dev/null
|
||||
|
||||
# This is written in src_install (so it's in CONTENTS), but punt all
|
||||
# pending updates to avoid user having to do etc-update (and make the
|
||||
# pkg_postinst logic simpler).
|
||||
rm -f "${ROOT}"/etc/._cfg????_gentoo-release
|
||||
|
||||
# We need to install directories and maybe some dev nodes when building
|
||||
# stages, but they cannot be in CONTENTS.
|
||||
# Also, we cannot reference $S as binpkg will break so we do this.
|
||||
multilib_layout
|
||||
if use build ; then
|
||||
emake -C "${D}/usr/share/${PN}" DESTDIR="${ROOT}" layout || die
|
||||
fi
|
||||
rm -f "${D}"/usr/share/${PN}/Makefile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
OS=$(usex kernel_FreeBSD BSD Linux) \
|
||||
DESTDIR="${D}" \
|
||||
install || die
|
||||
dodoc ChangeLog.svn
|
||||
|
||||
# need the makefile in pkg_preinst
|
||||
insinto /usr/share/${PN}
|
||||
doins Makefile || die
|
||||
|
||||
# handle multilib paths. do it here because we want this behavior
|
||||
# regardless of the C library that you're using. we do explicitly
|
||||
# list paths which the native ldconfig searches, but this isn't
|
||||
# problematic as it doesn't change the resulting ld.so.cache or
|
||||
# take longer to generate. similarly, listing both the native
|
||||
# path and the symlinked path doesn't change the resulting cache.
|
||||
local libdir ldpaths
|
||||
for libdir in $(get_all_libdirs) ; do
|
||||
ldpaths+=":/${libdir}:/usr/${libdir}:/usr/local/${libdir}"
|
||||
done
|
||||
echo "LDPATH='${ldpaths#:}'" >> "${D}"/etc/env.d/00basic
|
||||
|
||||
# rc-scripts version for testing of features that *should* be present
|
||||
echo "Gentoo Base System release ${PV}" > "${D}"/etc/gentoo-release
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local x
|
||||
|
||||
# We installed some files to /usr/share/baselayout instead of /etc to stop
|
||||
# (1) overwriting the user's settings
|
||||
# (2) screwing things up when attempting to merge files
|
||||
# (3) accidentally packaging up personal files with quickpkg
|
||||
# If they don't exist then we install them
|
||||
for x in master.passwd passwd shadow group fstab ; do
|
||||
[ -e "${ROOT}etc/${x}" ] && continue
|
||||
[ -e "${ROOT}usr/share/baselayout/${x}" ] || continue
|
||||
cp -p "${ROOT}usr/share/baselayout/${x}" "${ROOT}"etc
|
||||
done
|
||||
|
||||
# Force shadow permissions to not be world-readable #260993
|
||||
for x in shadow ; do
|
||||
[ -e "${ROOT}etc/${x}" ] && chmod o-rwx "${ROOT}etc/${x}"
|
||||
done
|
||||
|
||||
# Take care of the etc-update for the user
|
||||
if [ -e "${ROOT}"/etc/._cfg0000_gentoo-release ] ; then
|
||||
mv "${ROOT}"/etc/._cfg0000_gentoo-release "${ROOT}"/etc/gentoo-release
|
||||
fi
|
||||
|
||||
# whine about users that lack passwords #193541
|
||||
if [[ -e ${ROOT}/etc/shadow ]] ; then
|
||||
local bad_users=$(sed -n '/^[^:]*::/s|^\([^:]*\)::.*|\1|p' "${ROOT}"/etc/shadow)
|
||||
if [[ -n ${bad_users} ]] ; then
|
||||
echo
|
||||
ewarn "The following users lack passwords!"
|
||||
ewarn ${bad_users}
|
||||
fi
|
||||
fi
|
||||
|
||||
# baselayout leaves behind a lot of .keep files, so let's clean them up
|
||||
find "${ROOT}"/lib*/rcscripts/ -name .keep -exec rm -f {} + 2>/dev/null
|
||||
find "${ROOT}"/lib*/rcscripts/ -depth -type d -exec rmdir {} + 2>/dev/null
|
||||
|
||||
# whine about users with invalid shells #215698
|
||||
if [[ -e ${ROOT}/etc/passwd ]] ; then
|
||||
local bad_shells=$(awk -F: 'system("test -e " $7) { print $1 " - " $7}' /etc/passwd | sort)
|
||||
if [[ -n ${bad_shells} ]] ; then
|
||||
echo
|
||||
ewarn "The following users have non-existent shells!"
|
||||
ewarn "${bad_shells}"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
232
sdk_container/src/third_party/portage-stable/sys-apps/baselayout/baselayout-2.2.ebuild
vendored
Normal file
232
sdk_container/src/third_party/portage-stable/sys-apps/baselayout/baselayout-2.2.ebuild
vendored
Normal file
@ -0,0 +1,232 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-2.2.ebuild,v 1.3 2012/10/13 19:18:18 aballier Exp $
|
||||
|
||||
inherit eutils multilib
|
||||
|
||||
DESCRIPTION="Filesystem baselayout and init scripts"
|
||||
HOMEPAGE="http://www.gentoo.org/"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.bz2
|
||||
http://dev.gentoo.org/~vapier/dist/${P}.tar.bz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="build kernel_linux"
|
||||
|
||||
PDEPEND="sys-apps/openrc"
|
||||
|
||||
# Create our multilib dirs - the Makefile has no knowledge of this
|
||||
multilib_warn() {
|
||||
local syms=$1 dirs=$2 def_libdir=$3
|
||||
|
||||
[ -z "${syms}${dirs}" ] && return
|
||||
|
||||
ewarn "Your system profile has SYMLINK_LIB=${SYMLINK_LIB}, so that means"
|
||||
if [ -z "${syms}" ] ; then
|
||||
ewarn "you need to have these paths as symlinks to ${def_libdir}:"
|
||||
ewarn "$1"
|
||||
fi
|
||||
}
|
||||
multilib_layout() {
|
||||
local libdir libdirs=$(get_all_libdirs) def_libdir=$(get_abi_LIBDIR $DEFAULT_ABI)
|
||||
: ${libdirs:=lib} # it isn't that we don't trust multilib.eclass...
|
||||
|
||||
[ -z "${def_libdir}" ] && die "your DEFAULT_ABI=$DEFAULT_ABI appears to be invalid"
|
||||
|
||||
# figure out which paths should be symlinks and which should be directories
|
||||
local dirs syms exp d
|
||||
for libdir in ${libdirs} ; do
|
||||
exp=( {,usr/,usr/local/}${libdir} )
|
||||
for d in "${exp[@]/#/${ROOT}}" ; do
|
||||
# most things should be dirs
|
||||
if [ "${SYMLINK_LIB}" = "yes" ] && [ "${libdir}" = "lib" ] ; then
|
||||
[ ! -h "${d}" ] && [ -e "${d}" ] && dirs+=" ${d}"
|
||||
else
|
||||
[ -h "${d}" ] && syms+=" ${d}"
|
||||
fi
|
||||
done
|
||||
done
|
||||
if [ -n "${syms}${dirs}" ] ; then
|
||||
ewarn "Your system profile has SYMLINK_LIB=${SYMLINK_LIB:-no}, so that means you need to"
|
||||
ewarn "have these paths configured as follows:"
|
||||
[ -n "${dirs}" ] && ewarn "symlinks to '${def_libdir}':${dirs}"
|
||||
[ -n "${syms}" ] && ewarn "directories:${syms}"
|
||||
ewarn "The ebuild will attempt to fix these, but only for trivial conversions."
|
||||
ewarn "If things fail, you will need to manually create/move the directories."
|
||||
echo
|
||||
fi
|
||||
|
||||
# setup symlinks and dirs where we expect them to be; do not migrate
|
||||
# data ... just fall over in that case.
|
||||
local prefix
|
||||
for prefix in "${ROOT}"{,usr/,usr/local/} ; do
|
||||
if [ "${SYMLINK_LIB}" = yes ] ; then
|
||||
# we need to make sure "lib" points to the native libdir
|
||||
if [ -h "${prefix}lib" ] ; then
|
||||
# it's already a symlink! assume it's pointing to right place ...
|
||||
continue
|
||||
elif [ -d "${prefix}lib" ] ; then
|
||||
# "lib" is a dir, so need to convert to a symlink
|
||||
ewarn "Converting ${prefix}lib from a dir to a symlink"
|
||||
rm -f "${prefix}lib"/.keep
|
||||
if rmdir "${prefix}lib" 2>/dev/null ; then
|
||||
ln -s ${def_libdir} "${prefix}lib" || die
|
||||
else
|
||||
die "non-empty dir found where we needed a symlink: ${prefix}lib"
|
||||
fi
|
||||
else
|
||||
# nothing exists, so just set it up sanely
|
||||
ewarn "Initializing ${prefix}lib as a symlink"
|
||||
mkdir -p "${prefix}" || die
|
||||
rm -f "${prefix}lib" || die
|
||||
ln -s ${def_libdir} "${prefix}lib" || die
|
||||
mkdir -p "${prefix}${def_libdir}" #423571
|
||||
fi
|
||||
else
|
||||
# we need to make sure "lib" is a dir
|
||||
if [ -h "${prefix}lib" ] ; then
|
||||
# "lib" is a symlink, so need to convert to a dir
|
||||
ewarn "Converting ${prefix}lib from a symlink to a dir"
|
||||
rm -f "${prefix}lib" || die
|
||||
if [ -d "${prefix}lib32" ] ; then
|
||||
ewarn "Migrating ${prefix}lib32 to ${prefix}lib"
|
||||
mv "${prefix}lib32" "${prefix}lib" || die
|
||||
else
|
||||
mkdir -p "${prefix}lib" || die
|
||||
fi
|
||||
elif [ -d "${prefix}lib" ] ; then
|
||||
# make sure the old "lib" ABI location does not exist; we
|
||||
# only symlinked the lib dir on systems where we moved it
|
||||
# to "lib32" ...
|
||||
case ${CHOST} in
|
||||
*-gentoo-freebsd*) ;; # We want it the other way on fbsd.
|
||||
i?86*|x86_64*|powerpc*|sparc*|s390*)
|
||||
if [ -d "${prefix}lib32" ] ; then
|
||||
rm -f "${prefix}lib32"/.keep
|
||||
if ! rmdir "${prefix}lib32" 2>/dev/null ; then
|
||||
ewarn "You need to merge ${prefix}lib32 into ${prefix}lib"
|
||||
die "non-empty dir found where there should be none: ${prefix}lib32"
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
else
|
||||
# nothing exists, so just set it up sanely
|
||||
ewarn "Initializing ${prefix}lib as a dir"
|
||||
mkdir -p "${prefix}" || die
|
||||
rm -f "${prefix}lib" || die
|
||||
ln -s ${def_libdir} "${prefix}lib" || die
|
||||
fi
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
# Bug #217848 - Since the remap_dns_vars() called by pkg_preinst() of
|
||||
# the baselayout-1.x ebuild copies all the real configs from the user's
|
||||
# /etc/conf.d into ${D}, it makes them all appear to be the default
|
||||
# versions. In order to protect them from being unmerged after this
|
||||
# upgrade, modify their timestamps.
|
||||
touch "${ROOT}"/etc/conf.d/* 2>/dev/null
|
||||
|
||||
# This is written in src_install (so it's in CONTENTS), but punt all
|
||||
# pending updates to avoid user having to do etc-update (and make the
|
||||
# pkg_postinst logic simpler).
|
||||
rm -f "${ROOT}"/etc/._cfg????_gentoo-release
|
||||
|
||||
# We need to install directories and maybe some dev nodes when building
|
||||
# stages, but they cannot be in CONTENTS.
|
||||
# Also, we cannot reference $S as binpkg will break so we do this.
|
||||
#multilib_layout
|
||||
if use build ; then
|
||||
emake -C "${D}/usr/share/${PN}" DESTDIR="${ROOT}" layout || die
|
||||
fi
|
||||
rm -f "${D}"/usr/share/${PN}/Makefile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
OS=$(usex kernel_FreeBSD BSD Linux) \
|
||||
DESTDIR="${D}" \
|
||||
install || die
|
||||
dodoc ChangeLog.svn
|
||||
|
||||
# need the makefile in pkg_preinst
|
||||
insinto /usr/share/${PN}
|
||||
doins Makefile || die
|
||||
|
||||
# handle multilib paths. do it here because we want this behavior
|
||||
# regardless of the C library that you're using. we do explicitly
|
||||
# list paths which the native ldconfig searches, but this isn't
|
||||
# problematic as it doesn't change the resulting ld.so.cache or
|
||||
# take longer to generate. similarly, listing both the native
|
||||
# path and the symlinked path doesn't change the resulting cache.
|
||||
local libdir ldpaths
|
||||
for libdir in $(get_all_libdirs) ; do
|
||||
ldpaths+=":/${libdir}:/usr/${libdir}:/usr/local/${libdir}"
|
||||
done
|
||||
echo "LDPATH='${ldpaths#:}'" >> "${D}"/etc/env.d/00basic
|
||||
|
||||
# rc-scripts version for testing of features that *should* be present
|
||||
echo "Gentoo Base System release ${PV}" > "${D}"/etc/gentoo-release
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local x
|
||||
|
||||
# We installed some files to /usr/share/baselayout instead of /etc to stop
|
||||
# (1) overwriting the user's settings
|
||||
# (2) screwing things up when attempting to merge files
|
||||
# (3) accidentally packaging up personal files with quickpkg
|
||||
# If they don't exist then we install them
|
||||
for x in master.passwd passwd shadow group fstab ; do
|
||||
[ -e "${ROOT}etc/${x}" ] && continue
|
||||
[ -e "${ROOT}usr/share/baselayout/${x}" ] || continue
|
||||
cp -p "${ROOT}usr/share/baselayout/${x}" "${ROOT}"etc
|
||||
done
|
||||
|
||||
# Force shadow permissions to not be world-readable #260993
|
||||
for x in shadow ; do
|
||||
[ -e "${ROOT}etc/${x}" ] && chmod o-rwx "${ROOT}etc/${x}"
|
||||
done
|
||||
|
||||
# Take care of the etc-update for the user
|
||||
if [ -e "${ROOT}"/etc/._cfg0000_gentoo-release ] ; then
|
||||
mv "${ROOT}"/etc/._cfg0000_gentoo-release "${ROOT}"/etc/gentoo-release
|
||||
fi
|
||||
|
||||
# whine about users that lack passwords #193541
|
||||
if [[ -e ${ROOT}/etc/shadow ]] ; then
|
||||
local bad_users=$(sed -n '/^[^:]*::/s|^\([^:]*\)::.*|\1|p' "${ROOT}"/etc/shadow)
|
||||
if [[ -n ${bad_users} ]] ; then
|
||||
echo
|
||||
ewarn "The following users lack passwords!"
|
||||
ewarn ${bad_users}
|
||||
fi
|
||||
fi
|
||||
|
||||
# baselayout leaves behind a lot of .keep files, so let's clean them up
|
||||
find "${ROOT}"/lib*/rcscripts/ -name .keep -exec rm -f {} + 2>/dev/null
|
||||
find "${ROOT}"/lib*/rcscripts/ -depth -type d -exec rmdir {} + 2>/dev/null
|
||||
|
||||
# whine about users with invalid shells #215698
|
||||
if [[ -e ${ROOT}/etc/passwd ]] ; then
|
||||
local bad_shells=$(awk -F: 'system("test -e " $7) { print $1 " - " $7}' /etc/passwd | sort)
|
||||
if [[ -n ${bad_shells} ]] ; then
|
||||
echo
|
||||
ewarn "The following users have non-existent shells!"
|
||||
ewarn "${bad_shells}"
|
||||
fi
|
||||
fi
|
||||
|
||||
# http://bugs.gentoo.org/361349
|
||||
if use kernel_linux; then
|
||||
mkdir -p "${ROOT}"/run
|
||||
|
||||
if ! grep -qs "^tmpfs.*/run " "${ROOT}"/proc/mounts ; then
|
||||
echo
|
||||
ewarn "You should reboot the system now to get /run mounted with tmpfs!"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
5
sdk_container/src/third_party/portage-stable/sys-apps/baselayout/metadata.xml
vendored
Normal file
5
sdk_container/src/third_party/portage-stable/sys-apps/baselayout/metadata.xml
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>base-system</herd>
|
||||
</pkgmetadata>
|
||||
Loading…
x
Reference in New Issue
Block a user