2016-11-18 20:25:16 +01:00
|
|
|
# Maintainer: Johannes Findeisen <you@hanez.org>
|
|
|
|
pkgname=daemontools
|
|
|
|
pkgver=0.76
|
2024-09-26 12:51:15 +02:00
|
|
|
pkgrel=3
|
2016-11-18 20:25:16 +01:00
|
|
|
pkgdesc="Collection of tools for managing UNIX services"
|
2018-10-06 14:15:24 +02:00
|
|
|
url="https://cr.yp.to/daemontools.html"
|
2016-11-18 20:25:16 +01:00
|
|
|
arch="all"
|
[various]: unify names of licenses according to SPDX
This commit updates $license variable in all APKBUILDs to comply with
short names specified by SPDX version 3.0 [1] where possible. It was
done using find-and-replace method on substrings inside $license
variables.
Only license names were updated, not "expressions" specifying relation
between the licenses (e.g. "X and Y", "X or Y", "X and (Y or Z)") or
exceptions (e.g. "X with exceptions").
Many licenses have a version or multiple variants, e.g. MPL-2.0,
BSD-2-Clause, BSD-3-Clause. However, $license in many aports do not
contain license version or variant. Since there's no way how to infer
this information just from abuild, it were left without the variant
suffix or version, i.e. non SPDX compliant.
GNU licenses (AGPL, GFDL, GPL, LGPL) are especially complicated. They
exist in two variants: -only (formerly e.g. GPL-2.0) and -or-later
(formerly e.g. GPL-2.0+). We did not systematically noted distinguish
between these variants, so GPL-2.0, GPL2, GPLv2 etc. may mean
GPL-2.0-only or GPL-2.0-or-later. Thus GNU licenses without "+" (e.g.
GPL2+) were left without the variant suffix, i.e. non SPDX compliant.
Note: This commit just fixes format of the license names, no
verification has been done if the specified license information is
actually correct!
[1]: https://spdx.org/licenses/
2017-12-30 19:04:30 +01:00
|
|
|
license="Public-Domain"
|
2016-11-18 20:25:16 +01:00
|
|
|
depends=
|
|
|
|
# The makefile need GNU cat for 'cat -v'
|
|
|
|
makedepends="coreutils"
|
2024-09-26 12:51:15 +02:00
|
|
|
subpackages="$pkgname-openrc"
|
2016-11-18 20:25:16 +01:00
|
|
|
|
2018-10-06 14:07:51 +02:00
|
|
|
source="https://cr.yp.to/daemontools/$pkgname-$pkgver.tar.gz
|
2024-09-26 12:51:15 +02:00
|
|
|
0.76-C99-decls.patch
|
|
|
|
0.76-const-typecasts-C99.patch
|
2016-11-18 20:25:16 +01:00
|
|
|
0.76-errno.patch
|
2024-09-26 12:51:15 +02:00
|
|
|
0.76-implicit-func-decl-clang16.patch
|
2016-11-18 20:25:16 +01:00
|
|
|
svscan.initd
|
|
|
|
"
|
|
|
|
|
|
|
|
builddir="$srcdir"/admin/$pkgname-$pkgver/src
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$builddir"
|
|
|
|
echo "${CC:-"gcc"} ${CFLAGS}" > conf-cc
|
|
|
|
echo "${CC:-"gcc"} ${LDFLAGS}" > conf-ld
|
|
|
|
touch home
|
|
|
|
make PATH="/usr/bin:/bin" || return 1
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
local f
|
|
|
|
cd "$builddir"
|
|
|
|
mkdir -p "$pkgdir"/usr/bin "$pkgdir"/service
|
|
|
|
for f in $(cat ../package/commands); do
|
|
|
|
cp $f "$pkgdir"/usr/bin/$f
|
|
|
|
done
|
|
|
|
install -Dm755 "$srcdir"/svscan.initd "$pkgdir"/etc/init.d/svscan
|
|
|
|
}
|
|
|
|
|
2024-09-26 12:51:15 +02:00
|
|
|
sha512sums="
|
|
|
|
e4a7938352b745a03ccc41acdddba1e6782f0ca245e5cae060de62ab6c5a23c841a994c30140298d274405a7f26d53ba7e84e5810a3d185b2c01e4c0feffe6c7 daemontools-0.76.tar.gz
|
|
|
|
36695347e98d4dc177f685cddcf9e7331da8630f0632d1fb35a2df1898c9e4a73d8908b56dd218d9b6f06cd3f063e6a946567ab256498bf0d425ea2f06719c58 0.76-C99-decls.patch
|
|
|
|
bef1878140428a5c1ba06ad7d7d375c875569ca95ada71752de5bf3f969df839ac59f588b258e24673d5f6a3195c78c9868dd61c3d3a63583508fd0deb40d2fd 0.76-const-typecasts-C99.patch
|
2016-11-18 20:25:16 +01:00
|
|
|
76664b71e16ba4dbb081604a1a8c9ddc58a603777dccc0a53b0af9442ff8f0cdfce9ef8b05926dac62b81b2c805262df6a7e4df65920c00583132dbf136ba85e 0.76-errno.patch
|
2024-09-26 12:51:15 +02:00
|
|
|
209250b752cda3d3b67784e3c906c02ae365de884dec759e21fd14ecaa433f7f6d646afc918d8c0ffd9eab313ccaacf482e1920669b9e2c884b79b7e1cfd6f66 0.76-implicit-func-decl-clang16.patch
|
|
|
|
a2c3b35c7d253b9f2ffc5051663fdfacc5bd57385ce95d5d623f1f773d7bfe445b6837c7c1fe5565587387bdee0437761272f06902e166e95e2d00c19f8c6995 svscan.initd
|
|
|
|
"
|