profile-sync-daemon: use build options for systemd, add runit service, use INSTALL.msg instead of INSTALL script
This commit is contained in:
parent
1869dd3252
commit
cb06f101a7
|
@ -1,11 +0,0 @@
|
|||
case "$ACTION" in
|
||||
post)
|
||||
if [ "$UPDATE" = "no" ]; then
|
||||
echo '--> Define which users will make use of the sync in /etc/psd.conf'
|
||||
echo '--> Read the manpage before use or see the wiki page'
|
||||
echo '--> https://wiki.archlinux.org/index.php/Profile-sync-daemon'
|
||||
echo
|
||||
echo '--> ALWAYS backup your profile data before using utils like psd!'
|
||||
fi
|
||||
;;
|
||||
esac
|
|
@ -0,0 +1,5 @@
|
|||
Define which users will make use of the sync in /etc/psd.conf
|
||||
Read the manpage before use or see the wiki page
|
||||
https://wiki.archlinux.org/index.php/Profile-sync-daemon
|
||||
|
||||
ALWAYS backup your profile data before using utils like psd!
|
|
@ -1,7 +0,0 @@
|
|||
case "$ACTION" in
|
||||
pre)
|
||||
echo '--> Automatically stopping psd to rotate profiles back out of tmpfs.'
|
||||
echo '--> Be sure you disable psd.service and psd-resync.service manually.'
|
||||
systemctl stop psd.service
|
||||
;;
|
||||
esac
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
exec profile-sync-daemon unsync
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
profile-sync-daemon sync
|
||||
exec chpst -b profile-sync-daemon pause
|
|
@ -11,8 +11,14 @@ license="MIT"
|
|||
homepage="https://github.com/graysky2/profile-sync-daemon"
|
||||
distfiles="http://repo-ck.com/source/$pkgname/$pkgname-$version.tar.xz"
|
||||
checksum=9b6a66199fefb63ab81b8dbe72da04f238a91767d7f683597dfb019940e03c3d
|
||||
build_options="systemd"
|
||||
build_style="gnu-makefile"
|
||||
make_install_target=$(vopt_if systemd 'install-systemd-all' 'install-bin install-man')
|
||||
|
||||
do_install() {
|
||||
make DESTDIR="$DESTDIR" install-systemd-all
|
||||
install -Dm644 MIT "$DESTDIR/usr/share/licenses/$pkgname/LICENSE"
|
||||
do_build() {
|
||||
:
|
||||
}
|
||||
|
||||
post_install() {
|
||||
[ "$build_option_systemd" ] || vsv psd
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue