summaryrefslogblamecommitdiff
path: root/system/s6/APKBUILD
blob: 5c7ec31a1fd2e218de6bfe801acd6805fdc38841 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                                      
          
              
        




                                                                 

                                           
                               

                                        
                                                                     
                      
 




                                 
                                      








                                              
                                                                    
                                                                                      
                                                 







                                                                 

                                                                                                                                                               
# Contributor: Laurent Bercot <ska-adelie@skarnet.org>
# Maintainer: Laurent Bercot <ska-adelie@skarnet.org>
pkgname=s6
pkgver=2.7.2.2
pkgrel=0
pkgdesc="skarnet.org's small & secure supervision software suite"
url="https://skarnet.org/software/$pkgname/"
arch="all"
options="!check"  # No test suite.
license="ISC"
depends_dev="skalibs-dev execline-dev"
makedepends="skalibs-dev>=2.7 execline-dev"
install="$pkgname.post-upgrade"
subpackages="$pkgname-dev $pkgname-doc"
triggers="$pkgname.trigger=/run/service"
source="https://skarnet.org/software/$pkgname/$pkgname-$pkgver.tar.gz
	s6-svscanboot"

build() {
	cd "$builddir"
	./configure \
		--enable-shared \
		--enable-static \
		--enable-static-libc \
		--libdir=/usr/lib \
		--libexecdir="/lib/$pkgname" \
		--with-dynlib=/lib
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	cp -f "$srcdir/s6-svscanboot" "$pkgdir/lib/s6/s6-svscanboot"
	mkdir -p -m 0755 "$pkgdir/etc/s6/early-services" "$pkgdir/var/lib/s6/services"
	chmod 0755 "$pkgdir/lib/s6/s6-svscanboot"
}

doc() {
	default_doc
	mkdir -p "$subpkgdir/usr/share/doc"
	cp -a "$builddir/doc" "$subpkgdir/usr/share/doc/$pkgname"
}

sha512sums="ed7b9fbc73e9947e56ad641459c04ff210fb801c8cfdbb5f0a00bdecbe1f5969ae73a6b52b048cd6617c88308f3a7bfd0ed98a48e78b1b5ba90b96e95845d165  s6-2.7.2.2.tar.gz
9c29bc9eee6d5ab502a5a86bb043ebd21e085022efc506a330ae5ab0eadf7038d0a3dc8e025d78d9610cf7ec0ca031887f755486c4cb4e571090ea3a9c1806ac  s6-svscanboot"