Browse Source

[trunk] -> [community] 'znc-s6-20200908-1' add

master
Dudemanguy 2 years ago
parent
commit
f007057505
  1. 33
      trunk/PKGBUILD
  2. 2
      trunk/znc-log.conf
  3. 1
      trunk/znc-log.consumer-for
  4. 1
      trunk/znc-log.notification-fd
  5. 1
      trunk/znc-log.pipeline-name
  6. 5
      trunk/znc-log.run
  7. 0
      trunk/znc-log.type
  8. 1
      trunk/znc-srv.producer-for
  9. 3
      trunk/znc-srv.run
  10. 0
      trunk/znc-srv.type
  11. 7
      trunk/znc.install
  12. 3
      trunk/znc.run
  13. 33
      x86_64/community/PKGBUILD
  14. 2
      x86_64/community/znc-log.conf
  15. 1
      x86_64/community/znc-log.consumer-for
  16. 1
      x86_64/community/znc-log.notification-fd
  17. 1
      x86_64/community/znc-log.pipeline-name
  18. 5
      x86_64/community/znc-log.run
  19. 1
      x86_64/community/znc-log.type
  20. 1
      x86_64/community/znc-srv.producer-for
  21. 3
      x86_64/community/znc-srv.run
  22. 1
      x86_64/community/znc-srv.type
  23. 7
      x86_64/community/znc.install
  24. 3
      x86_64/community/znc.run

33
trunk/PKGBUILD

@ -1,6 +1,7 @@
# Maintainer: Dudemanguy <dudemanguy@artixlinux.org>
# Contributor: Nathan Owens <ndowens@artixlinux.org>
pkgname=znc-s6
pkgver=20200713
pkgver=20200908
pkgrel=1
pkgdesc="s6 service scripts for znc"
arch=('any')
@ -10,18 +11,24 @@ provides=('znc-runscripts')
conflicts=('znc-runscripts')
depends=('znc' 's6')
install=znc.install
source=("znc.run" "znc.type")
sha256sums=('571f1328a9219528ea58ee0e77a929aeb8dae3d4def450255baf2c561c68fd01'
'd0001a150b83f68f09004c5059045cb76a3f064eed4d42ce072bc3722c118006')
_inst_sv(){
for file in run type; do
if test -f "$srcdir/$1.$file"; then
install -Dm644 "$srcdir/$1.$file" "$pkgdir/etc/s6/sv/$1/$file"
fi
done
}
source=("znc-srv."{type,run,producer-for}
"znc-log."{type,run,conf,pipeline-name,consumer-for,notification-fd})
b2sums=('d64d49cff4f8f99eb08cf0a31d20f5b6908fabfcc055feab7d5b260bbdae4a39fc5e7be8d91a0d8f97ffe6da2d3924c4c3fa91be18130bc144fdd42a8e63de85'
'2b61b40a161d3ba5f0efdbc8a1774ac883781ecfe27fac620491a12d588e5b99a40f109dfe13e53f892f5cd21be8188c39c763cc3620623caf8db2e1c9a3bcd9'
'1e150baf8a89d8741a3f8b026d53d21c71a1f61e9f5f382129161617ed1935d148845b6e319ef48bbe24b5dbe6fb740a59d2c61d5424efdb2b3fde19e4e1d84d'
'd64d49cff4f8f99eb08cf0a31d20f5b6908fabfcc055feab7d5b260bbdae4a39fc5e7be8d91a0d8f97ffe6da2d3924c4c3fa91be18130bc144fdd42a8e63de85'
'd389f9d46891acda7188eead2967bef5c8fa091734ab55187fba2b1206a083690dd57174baa5e68a0ea1329819e7875178ea42064f474e338d3b454938c3d3cd'
'2a517d2f5dc7ddbfb2e24054c863167044f2ac414cc636f60d86b6373592ab6e960d42a8ef5c0058b186099a92b5b98915753f9b80220aed9003e7beb987ef05'
'94bdce7257d4295c0f5007c561ec225dddbb9328830de494530f04080a2acc6c9972969e3594ec63f8c6a96f894fd74063135d689e33f4ecab5901cc4f66c0ab'
'2244dfedd18317f11b7fe7cb243fac82c4230434de242418c951f42daa6ce9c72f10d42cb788fe735e735a10a3c539064a369a915ccf9ce1d1203a798d302219'
'dfb4f0a38f1ba4731ab1e568b7ec45fa2977d1661b5d1b3a7bb79d49b900d7849a78ef67af65243b357d8a209f379e6f026f86efdce430256f6fadc8ce2b0a49')
package() {
_inst_sv 'znc'
for _srv in znc-srv.{type,run,producer-for}; do
install -Dm644 "$_srv" "$pkgdir"/etc/s6/sv/znc-srv/${_srv/znc-srv./}
done
for _log in znc-log.{type,run,consumer-for,notification-fd,pipeline-name,conf}; do
install -Dm644 "$_log" "$pkgdir"/etc/s6/sv/znc-log/${_log/znc-log./}
done
}

2
trunk/znc-log.conf

@ -0,0 +1,2 @@
# This configures the directives used for s6-log in the log service.
DIRECTIVES="n3 s2000000 T"

1
trunk/znc-log.consumer-for

@ -0,0 +1 @@
znc-srv

1
trunk/znc-log.notification-fd

@ -0,0 +1 @@
3

1
trunk/znc-log.pipeline-name

@ -0,0 +1 @@
znc

5
trunk/znc-log.run

@ -0,0 +1,5 @@
#!/usr/bin/execlineb -P
envfile /etc/s6/sv/znc-log/conf
importas -iu DIRECTIVES DIRECTIVES
foreground { if -n -t { test -d /var/log/znc } install -d -m 0755 -o s6log -g s6log /var/log/znc }
s6-setuidgid s6log exec -c sh -c "s6-log -d3 -b ${DIRECTIVES} /var/log/znc"

0
trunk/znc.type → trunk/znc-log.type

1
trunk/znc-srv.producer-for

@ -0,0 +1 @@
znc-log

3
trunk/znc-srv.run

@ -0,0 +1,3 @@
#!/usr/bin/execlineb -P
fdmove -c 2 1
s6-setuidgid znc exec znc -f -d /var/lib/znc

0
x86_64/community/znc.type → trunk/znc-srv.type

7
trunk/znc.install

@ -1,5 +1,10 @@
pre_remove() {
if [ -e "/run/service/znc" ]; then
if [ -e "/run/service/znc-srv" ]; then
s6-rc -d change znc
fi
}
post_remove() {
rm -rf /etc/s6/sv/znc-log
rm -rf /etc/s6/sv/znc-srv
}

3
trunk/znc.run

@ -1,3 +0,0 @@
#!/usr/bin/execlineb -P
fdmove -c 2 1
exec znc -f

33
x86_64/community/PKGBUILD

@ -1,6 +1,7 @@
# Maintainer: Dudemanguy <dudemanguy@artixlinux.org>
# Contributor: Nathan Owens <ndowens@artixlinux.org>
pkgname=znc-s6
pkgver=20200713
pkgver=20200908
pkgrel=1
pkgdesc="s6 service scripts for znc"
arch=('any')
@ -10,18 +11,24 @@ provides=('znc-runscripts')
conflicts=('znc-runscripts')
depends=('znc' 's6')
install=znc.install
source=("znc.run" "znc.type")
sha256sums=('571f1328a9219528ea58ee0e77a929aeb8dae3d4def450255baf2c561c68fd01'
'd0001a150b83f68f09004c5059045cb76a3f064eed4d42ce072bc3722c118006')
_inst_sv(){
for file in run type; do
if test -f "$srcdir/$1.$file"; then
install -Dm644 "$srcdir/$1.$file" "$pkgdir/etc/s6/sv/$1/$file"
fi
done
}
source=("znc-srv."{type,run,producer-for}
"znc-log."{type,run,conf,pipeline-name,consumer-for,notification-fd})
b2sums=('d64d49cff4f8f99eb08cf0a31d20f5b6908fabfcc055feab7d5b260bbdae4a39fc5e7be8d91a0d8f97ffe6da2d3924c4c3fa91be18130bc144fdd42a8e63de85'
'2b61b40a161d3ba5f0efdbc8a1774ac883781ecfe27fac620491a12d588e5b99a40f109dfe13e53f892f5cd21be8188c39c763cc3620623caf8db2e1c9a3bcd9'
'1e150baf8a89d8741a3f8b026d53d21c71a1f61e9f5f382129161617ed1935d148845b6e319ef48bbe24b5dbe6fb740a59d2c61d5424efdb2b3fde19e4e1d84d'
'd64d49cff4f8f99eb08cf0a31d20f5b6908fabfcc055feab7d5b260bbdae4a39fc5e7be8d91a0d8f97ffe6da2d3924c4c3fa91be18130bc144fdd42a8e63de85'
'd389f9d46891acda7188eead2967bef5c8fa091734ab55187fba2b1206a083690dd57174baa5e68a0ea1329819e7875178ea42064f474e338d3b454938c3d3cd'
'2a517d2f5dc7ddbfb2e24054c863167044f2ac414cc636f60d86b6373592ab6e960d42a8ef5c0058b186099a92b5b98915753f9b80220aed9003e7beb987ef05'
'94bdce7257d4295c0f5007c561ec225dddbb9328830de494530f04080a2acc6c9972969e3594ec63f8c6a96f894fd74063135d689e33f4ecab5901cc4f66c0ab'
'2244dfedd18317f11b7fe7cb243fac82c4230434de242418c951f42daa6ce9c72f10d42cb788fe735e735a10a3c539064a369a915ccf9ce1d1203a798d302219'
'dfb4f0a38f1ba4731ab1e568b7ec45fa2977d1661b5d1b3a7bb79d49b900d7849a78ef67af65243b357d8a209f379e6f026f86efdce430256f6fadc8ce2b0a49')
package() {
_inst_sv 'znc'
for _srv in znc-srv.{type,run,producer-for}; do
install -Dm644 "$_srv" "$pkgdir"/etc/s6/sv/znc-srv/${_srv/znc-srv./}
done
for _log in znc-log.{type,run,consumer-for,notification-fd,pipeline-name,conf}; do
install -Dm644 "$_log" "$pkgdir"/etc/s6/sv/znc-log/${_log/znc-log./}
done
}

2
x86_64/community/znc-log.conf

@ -0,0 +1,2 @@
# This configures the directives used for s6-log in the log service.
DIRECTIVES="n3 s2000000 T"

1
x86_64/community/znc-log.consumer-for

@ -0,0 +1 @@
znc-srv

1
x86_64/community/znc-log.notification-fd

@ -0,0 +1 @@
3

1
x86_64/community/znc-log.pipeline-name

@ -0,0 +1 @@
znc

5
x86_64/community/znc-log.run

@ -0,0 +1,5 @@
#!/usr/bin/execlineb -P
envfile /etc/s6/sv/znc-log/conf
importas -iu DIRECTIVES DIRECTIVES
foreground { if -n -t { test -d /var/log/znc } install -d -m 0755 -o s6log -g s6log /var/log/znc }
s6-setuidgid s6log exec -c sh -c "s6-log -d3 -b ${DIRECTIVES} /var/log/znc"

1
x86_64/community/znc-log.type

@ -0,0 +1 @@
longrun

1
x86_64/community/znc-srv.producer-for

@ -0,0 +1 @@
znc-log

3
x86_64/community/znc-srv.run

@ -0,0 +1,3 @@
#!/usr/bin/execlineb -P
fdmove -c 2 1
s6-setuidgid znc exec znc -f -d /var/lib/znc

1
x86_64/community/znc-srv.type

@ -0,0 +1 @@
longrun

7
x86_64/community/znc.install

@ -1,5 +1,10 @@
pre_remove() {
if [ -e "/run/service/znc" ]; then
if [ -e "/run/service/znc-srv" ]; then
s6-rc -d change znc
fi
}
post_remove() {
rm -rf /etc/s6/sv/znc-log
rm -rf /etc/s6/sv/znc-srv
}

3
x86_64/community/znc.run

@ -1,3 +0,0 @@
#!/usr/bin/execlineb -P
fdmove -c 2 1
exec znc -f
Loading…
Cancel
Save