blob: 0492a046a1bc4cc6faf6f1e0df38c9f145580c7e (
plain) (
tree)
|
|
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=adelie-base
pkgver=0.9.0
pkgrel=0
pkgdesc="The Adélie Linux Base System"
url="http://adelielinux.org/"
arch="noarch"
options="!check !fhs"
license="NCSA"
_core_depends="apk-tools adelie-keys shadow
shimmy grep procps bash
coreutils diffutils findutils sharutils
util-linux net-tools
sysklogd
patch sed nvi psmisc less"
depends="adelie-core debianutils libarchive-tools file zsh binutils
console-setup sysklogd man-db tzdata gettys-openrc"
makedepends=""
makedepends_host="$depends"
subpackages="adelie-core:core $pkgname-doc $pkgname-posix $pkgname-lsb dev-kit:devkit"
provides="alpine-base"
source="https://distfiles.adelielinux.org/source/$pkgname/$pkgname-$pkgver.tar.xz
group
passwd
addgroup
adduser
"
build() {
# taken from Alpine Base Layout: generate shadow
awk -F: '{
pw = ":!:"
if ($1 == "root") { pw = "::" }
print($1 pw ":0:::::")
}' "$srcdir"/passwd > "$builddir"/tree/etc/shadow
chmod 640 "$builddir"/tree/etc/shadow
}
package() {
cd "$builddir"
mkdir -p "$pkgdir"
make install DESTDIR="$pkgdir"
install -m644 "$srcdir"/group "$pkgdir"/etc/group
install -m644 "$srcdir"/passwd "$pkgdir"/etc/passwd
install -m640 -g shadow "$builddir"/tree/etc/shadow "$pkgdir"/etc/shadow
# stupid inflatable stupid busybox
local i
for i in adduser addgroup; do
install -m755 "$srcdir"/$i "$pkgdir"/usr/sbin/$i
done
}
core() {
core="The Adélie Linux minimal runtime environment"
depends=$_core_depends
replaces="adelie-base"
mkdir -p "$subpkgdir"
mv -i "$pkgdir"/* "$subpkgdir"/
}
doc() {
local _doc DOCS
DOCS="CONTRIBUTING.rst LICENSE README.rst"
for _doc in $DOCS; do
install -Dm644 "$srcdir"/$pkgname-$pkgver/$_doc \
"$subpkgdir"/usr/share/doc/$pkgname/$_doc
done
}
posix() {
# We pull in vim for /usr/bin/ex, until apk has an alternatives system
depends="adelie-base at bc cflow ed fcron heirloom-devtools
heirloom-pax mailx mawk vim"
pkgdesc="$pkgdesc - Additional POSIX tools"
mkdir -p "$subpkgdir"
return 0
}
lsb() {
depends="adelie-base gettext-tiny gzip libarchive-tools linux-pam make
mawk ncurses nspr nss"
pkgdesc="$pkgdesc - Additional LSB tools"
mkdir -p "$subpkgdir"
return 0
}
devkit() {
depends="build-tools fakeroot gzip libarchive-tools mawk xz"
pkgdesc="The Adélie Linux Development Kit"
mkdir -p "$subpkgdir"
return 0
}
sha512sums="6ab062f888aade663fa6751dc896ae037a405bb750f8e61ad0df74d822470560f7bab8b32bcaee1331344df6fc124a908408f7ac4388083762640ab95e0058c8 adelie-base-0.9.0.tar.xz
37260d9315fd8d8b0df3dfb5bd3e1035a47ba1e43f33aa195e3feca6d169da282c1b067ef4603e7e9acaedbfef8b58cf490c00bdca444d43c9d570355ad29eac group
1288d9d1ee77e1159bacbc94a44b2ae9c6dff94c5001be6e560cd5859f86181c47341317025d4999bc7d57cfcebb7974804514d981b7bd66ffd00c5edaf5360c passwd
5b87e0c73e7d73715467b09c9c228b14abfdc1567b3d8a3e6ef86694a9d016c798c22411c9c8ccf41920fbe185199f6d6dbd45d4bceb6652ab4a7bea87c4fe51 addgroup
f50be377c781b1eefb1804ac9d96b4ebc64f80abe0d12b288413687a000e79ca30c531bbced2c63f9e4df59b1d8a71d0eda09ee82782eaafea453f2f1c2f7b8f adduser"
|