Skip to content
Snippets Groups Projects
Commit e8f86632 authored by ProwlerGr's avatar ProwlerGr
Browse files

debian packaging

parent 19d6f704
No related branches found
No related tags found
No related merge requests found
#Ignore residual files after a succesfull build
#
.pc
config.mak
debian/*debhelper*
debian/*substvars*
debian/files
#
......@@ -7,13 +7,25 @@ Build Instructions
This software will install on any operating system that implements POSIX.1-2008, available at [opengroup](http://pubs.opengroup.org/onlinepubs/9699919799/).
## Standard usage
## Recommended build instructions
`./configure && make && sudo make install` will work for most users.
The recommended method to build this package directly from git:
```
gbp clone https://gitlab.com/init-diversity/s6-66/66-service-scandir.git &&
cd 66-service-scandir &&
gbp buildpackage -uc -us
```
The following should get you all the software required to build using this method:
```
sudo apt install git-buildpackage dh-exec lowdown
```
Note: the man and html documentation pages will always be generated if *lowdown* is installed on your system. However, if you don't ask to build the documentation the final `DESTDIR` directory will do not contains any documentation at all.
## Customization
You can customize paths via flags given to configure. See `./configure --help` for a list of all available configure options.
These flags will need to be added to the debian/rules file.
## Runtime dependencies
......@@ -22,3 +34,26 @@ You can customize paths via flags given to configure. See `./configure --help` f
- 66 version 0.7.0.0 or later https://git.obarun.org/Obarun/66/
- 66-tools version 0.1.0.1 or later https://git.obarun.org/Obarun/66-tools/
Contact information
-------------------
* Email:
Eric Vidal `<eric@obarun.org>`
* Mailing list
https://obarun.org/mailman/listinfo/66_obarun.org/
* Web site:
https://web.obarun.org/
* XMPP Channel:
obarun@xmpp.obarun.org
Supports the project
---------------------
Please consider to make [donation](https://web.obarun.org/index.php?id=18)
66-service-scandir (0.4.2-0experimental1) UNRELEASED; urgency=medium
* Original release built from upstream. Moved to gitlab.
-- ProwlerGr <Prowler73@gmail.com> Sun, 09 Jun 2024 22:22:22 +1000
66-service-scandir (0.4.1experimental1-1) UNRELEASED; urgency=medium
* Original release built from upstream.
-- ProwlerGr <Prowler73@gmail.com> Fri, 17 May 2024 22:22:22 +1000
Source: 66-service-scandir
Section: init-diversity
Priority: optional
Maintainer: ProwlerGr <Prowler73@gmail.com>
Rules-Requires-Root: no
Build-Depends:
debhelper-compat (= 13),
s6 (>= 2.12.0.2),
libs6-dev (>= 2.12),
skalibs-dev (>= 2.14.0.1),
execline (>= 2.9.4.0),
libexecline-dev (>= 2.9),
s6-portable-utils (>= 2.3.0.3),
oblibs (>= 0.2.0.0),
66-tools (>= 0.1.0.0)
Standards-Version: 4.6.2
Homepage: https://git.obarun.org/66-service/arch/scandir
Vcs-Browser: https://git.obarun.org/66-service/debian/66-service-scandir
Vcs-Git: https://git.obarun.org/66-service/debian/66-service-scandir.git
Package: 66-service-scandir
Architecture: all
Depends:
${misc:Depends},
66-service-boot | boot-66serv,
Recommends:
66-service-boot-user,
Description: 66 service module to create a user service scandir.
66 service module to create a scandir for user services with s6-66.
Copyright (c) 2018-2024 Eric Vidal <eric@obarun.org>
All rights reserved.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
[DEFAULT]
upstream-branch = master
debian-branch = debian
upstream-tag = %(version)s
compression = xz
pristine-tar = False
[buildpackage]
export-dir = ../build-area/
cleaner = true
#!/bin/sh
# postinst script for s6-66-services.
#
# See: dh_installdeb(1).
set -e
# Summary of how this script can be called:
# * <postinst> 'configure' <most-recently-configured-version>
# * <old-postinst> 'abort-upgrade' <new version>
# * <conflictor's-postinst> 'abort-remove' 'in-favour' <package>
# <new-version>
# * <postinst> 'abort-remove'
# * <deconfigured's-postinst> 'abort-deconfigure' 'in-favour'
# <failed-install-package> <version> 'removing'
# <conflicting-package> <version>
# for details, see https://www.debian.org/doc/debian-policy/ or
# the debian-policy package.
SERVICE1="service1"
SERVICE2="service2"
SERVICE3="service3"
SERVICE4="service4"
USER_SERVICE1="user-service1"
USER_SERVICE2="user-service2"
USER_SERVICE3="user-service3"
USER_SERVICE4="user-service4"
INSTANTIATED_SERVICE1="scandir@"
INSTANTIATED_SERVICE2="instantiated-service2"
INSTANTIATED_SERVICE3="instantiated-service3"
INSTANTIATED_SERVICE4="instantiated-service4"
INSTANTIATED_USER_SERVICE1="instantiated-user-service1"
INSTANTIATED_USER_SERVICE2="instantiated-user-service2"
INSTANTIATED_USER_SERVICE3="instantiated-user-service3"
INSTANTIATED_USER_SERVICE4="instantiated-user-service4"
case "$1" in
configure)
##### GLOBAL SERVICES #####
if test -d /run/66/scandir && test -f /usr/share/66/service/$SERVICE1 || test -f /etc/66/service/$SERVICE1 ; then
echo "parsing/reconfiguring/starting/enabling packaged services"
66 parse $SERVICE1 && 66 reconfigure $SERVICE1 && 66 enable $SERVICE1 && 66 start $SERVICE1
fi
if [ ! -d /run/66/scandir ] && test -f /usr/share/66/service/$SERVICE1 || test -f /etc/66/service/$SERVICE1 ; then
echo "parsing/reconfiguring/enabling packaged services"
66 parse $SERVICE1 && 66 reconfigure $SERVICE1 && 66 enable $SERVICE1
fi
if test -d /run/66/scandir && test -f /usr/share/66/service/$SERVICE2 || test -f /etc/66/service/$SERVICE2 ; then
echo "parsing/reconfiguring/starting/enabling packaged services"
66 parse $SERVICE2 && 66 reconfigure $SERVICE2 && 66 enable $SERVICE2 && 66 start $SERVICE2
fi
if [ ! -d /run/66/scandir ] && test -f /usr/share/66/service/$SERVICE2 || test -f /etc/66/service/$SERVICE2 ; then
echo "parsing/reconfiguring/enabling packaged services"
66 parse $SERVICE2 && 66 reconfigure $SERVICE2 && 66 enable $SERVICE2
fi
if test -d /run/66/scandir && test -f /usr/share/66/service/$SERVICE3 || test -f /etc/66/service/$SERVICE3 ; then
echo "parsing/reconfiguring/starting/enabling packaged services"
66 parse $SERVICE3 && 66 reconfigure $SERVICE3 && 66 enable $SERVICE3 && 66 start $SERVICE3
fi
if [ ! -d /run/66/scandir ] && test -f /usr/share/66/service/$SERVICE3 || test -f /etc/66/service/$SERVICE3 ; then
echo "parsing/reconfiguring/enabling packaged services"
66 parse $SERVICE3 && 66 reconfigure $SERVICE3 && 66 enable $SERVICE3
fi
if test -d /run/66/scandir && test -f /usr/share/66/service/$SERVICE4 || test -f /etc/66/service/$SERVICE4 ; then
echo "parsing/reconfiguring/starting/enabling packaged services"
66 parse $SERVICE4 && 66 reconfigure $SERVICE4 && 66 enable $SERVICE4 && 66 start $SERVICE4
fi
if [ ! -d /run/66/scandir ] && test -f /usr/share/66/service/$SERVICE4 || test -f /etc/66/service/$SERVICE4 ; then
echo "parsing/reconfiguring/enabling packaged services"
66 parse $SERVICE4 && 66 reconfigure $SERVICE4 && 66 enable $SERVICE4
fi
##### USER SERVICES #####
getent passwd $(basename -a /home/*) | awk -F: '{print $1}' > home-users && cat home-users | while read line; do
if test -d /run/66/scandir && test -f /usr/share/66/service/user/$USER_SERVICE1 || test -f /etc/66/service/user/$USER_SERVICE1 ; then
echo "parsing/reconfiguring/starting/enabling packaged services"
runuser -u $line /usr/bin/66 parse $USER_SERVICE1 && runuser -u $line /usr/bin/66 reconfigure $USER_SERVICE1 && runuser -u $line /usr/bin/66 enable $USER_SERVICE1 && runuser -u $line /usr/bin/66 start $USER_SERVICE1;
fi
if [ ! -d /run/66/scandir ] && test -f /usr/share/66/service/user/$USER_SERVICE1 || test -f /etc/66/service/user/$USER_SERVICE1 ; then
echo "parsing/reconfiguring/enabling packaged services"
runuser -u $line /usr/bin/66 parse $USER_SERVICE1 && runuser -u $line /usr/bin/66 reconfigure $USER_SERVICE1 && runuser -u $line /usr/bin/66 enable $USER_SERVICE1;
fi
if test -d /run/66/scandir && test -f /usr/share/66/service/user/$USER_SERVICE2 || test -f /etc/66/service/user/$USER_SERVICE2 ; then
echo "parsing/reconfiguring/starting/enabling packaged services"
runuser -u $line /usr/bin/66 parse $USER_SERVICE2 && runuser -u $line /usr/bin/66 reconfigure $USER_SERVICE2 && runuser -u $line /usr/bin/66 enable $USER_SERVICE2 && runuser -u $line /usr/bin/66 start $USER_SERVICE2;
fi
if [ ! -d /run/66/scandir ] && test -f /usr/share/66/service/user/$USER_SERVICE2 || test -f /etc/66/service/user/$USER_SERVICE2 ; then
echo "parsing/reconfiguring/enabling packaged services"
runuser -u $line /usr/bin/66 parse $USER_SERVICE2 && runuser -u $line /usr/bin/66 reconfigure $USER_SERVICE2 && runuser -u $line /usr/bin/66 enable $USER_SERVICE2;
fi
if test -d /run/66/scandir && test -f /usr/share/66/service/user/$USER_SERVICE3 || test -f /etc/66/service/user/$USER_SERVICE3 ; then
echo "parsing/reconfiguring/starting/enabling packaged services"
runuser -u $line /usr/bin/66 parse $USER_SERVICE3 && runuser -u $line /usr/bin/66 reconfigure $USER_SERVICE3 && runuser -u $line /usr/bin/66 enable $USER_SERVICE3 && runuser -u $line /usr/bin/66 start $USER_SERVICE3;
fi
if [ ! -d /run/66/scandir ] && test -f /usr/share/66/service/user/$USER_SERVICE3 || test -f /etc/66/service/user/$USER_SERVICE3 ; then
echo "parsing/reconfiguring/enabling packaged services"
runuser -u $line /usr/bin/66 parse $USER_SERVICE3 && runuser -u $line /usr/bin/66 reconfigure $USER_SERVICE3 && runuser -u $line /usr/bin/66 enable $USER_SERVICE3;
fi
if test -d /run/66/scandir && test -f /usr/share/66/service/user/$USER_SERVICE4 || test -f /etc/66/service/user/$USER_SERVICE4 ; then
echo "parsing/reconfiguring/starting/enabling packaged services"
runuser -u $line /usr/bin/66 parse $USER_SERVICE4 && runuser -u $line /usr/bin/66 reconfigure $USER_SERVICE4 && runuser -u $line /usr/bin/66 enable $USER_SERVICE4 && runuser -u $line /usr/bin/66 start $USER_SERVICE4;
fi
if [ ! -d /run/66/scandir ] && test -f /usr/share/66/service/user/$USER_SERVICE4 || test -f /etc/66/service/user/$USER_SERVICE4 ; then
echo "parsing/reconfiguring/enabling packaged services"
runuser -u $line /usr/bin/66 parse $USER_SERVICE4 && runuser -u $line /usr/bin/66 reconfigure $USER_SERVICE4 && runuser -u $line /usr/bin/66 enable $USER_SERVICE4;
fi
done
##### INSTANTIATED SERVICES #####
getent passwd $(basename -a /home/*) | awk -F: '{print $1}' > home-users && cat home-users | while read line; do
if test -d /run/66/scandir && test -f /usr/share/66/service/${INSTANTIATED_SERVICE1%@}/$INSTANTIATED_SERVICE1 || test -f /etc/66/service/${INSTANTIATED_SERVICE1%@}/$INSTANTIATED_SERVICE1 ; then
echo "parsing/reconfiguring/starting/enabling packaged services"
66 parse $INSTANTIATED_SERVICE1$line && 66 reconfigure $INSTANTIATED_SERVICE1$line && 66 enable $INSTANTIATED_SERVICE1$line && 66 start $INSTANTIATED_SERVICE1$line
fi
if [ ! -d /run/66/scandir ] && test -f /usr/share/66/service/${INSTANTIATED_SERVICE1%@}/$INSTANTIATED_SERVICE1 || test -f /etc/66/service/${INSTANTIATED_SERVICE1%@}/$INSTANTIATED_SERVICE1 ; then
echo "parsing/reconfiguring/enabling packaged services"
66 parse $INSTANTIATED_SERVICE1$line && 66 reconfigure $INSTANTIATED_SERVICE1$line && 66 enable $INSTANTIATED_SERVICE1$line
fi
if test -d /run/66/scandir && test -f /usr/share/66/service/${INSTANTIATED_SERVICE2%@}/$INSTANTIATED_SERVICE2 || test -f /etc/66/service/${INSTANTIATED_SERVICE2%@}/$INSTANTIATED_SERVICE2 ; then
echo "parsing/reconfiguring/starting/enabling packaged services"
66 parse $INSTANTIATED_SERVICE2$line && 66 reconfigure $INSTANTIATED_SERVICE2$line && 66 enable $INSTANTIATED_SERVICE2$line && 66 start $INSTANTIATED_SERVICE2$line
fi
if [ ! -d /run/66/scandir ] && test -f /usr/share/66/service/${INSTANTIATED_SERVICE2%@}/$INSTANTIATED_SERVICE2 || test -f /etc/66/service/${INSTANTIATED_SERVICE2%@}/$INSTANTIATED_SERVICE2 ; then
echo "parsing/reconfiguring/enabling packaged services"
66 parse $INSTANTIATED_SERVICE2$line && 66 reconfigure $INSTANTIATED_SERVICE2$line && 66 enable $INSTANTIATED_SERVICE2$line
fi
if test -d /run/66/scandir && test -f /usr/share/66/service/${INSTANTIATED_SERVICE3%@}/$INSTANTIATED_SERVICE3 || test -f /etc/66/service/${INSTANTIATED_SERVICE3%@}/$INSTANTIATED_SERVICE3 ; then
echo "parsing/reconfiguring/starting/enabling packaged services"
66 parse $INSTANTIATED_SERVICE3$line && 66 reconfigure $INSTANTIATED_SERVICE3$line && 66 enable $INSTANTIATED_SERVICE3$line && 66 start $INSTANTIATED_SERVICE3$line
fi
if [ ! -d /run/66/scandir ] && test -f /usr/share/66/service/${INSTANTIATED_SERVICE3%@}/$INSTANTIATED_SERVICE3 || test -f /etc/66/service/${INSTANTIATED_SERVICE3%@}/$INSTANTIATED_SERVICE3 ; then
echo "parsing/reconfiguring/enabling packaged services"
66 parse $INSTANTIATED_SERVICE3$line && 66 reconfigure $INSTANTIATED_SERVICE3$line && 66 enable $INSTANTIATED_SERVICE3$line
fi
if test -d /run/66/scandir && test -f /usr/share/66/service/${INSTANTIATED_SERVICE4%@}/$INSTANTIATED_SERVICE4 || test -f /etc/66/service/${INSTANTIATED_SERVICE4%@}/$INSTANTIATED_SERVICE4 ; then
echo "parsing/reconfiguring/starting/enabling packaged services"
66 parse $INSTANTIATED_SERVICE4$line && 66 reconfigure $INSTANTIATED_SERVICE4$line && 66 enable $INSTANTIATED_SERVICE4$line && 66 start $INSTANTIATED_SERVICE4$line
fi
if [ ! -d /run/66/scandir ] && test -f /usr/share/66/service/${INSTANTIATED_SERVICE4%@}/$INSTANTIATED_SERVICE4 || test -f /etc/66/service/${INSTANTIATED_SERVICE4%@}/$INSTANTIATED_SERVICE4 ; then
echo "parsing/reconfiguring/enabling packaged services"
66 parse $INSTANTIATED_SERVICE4$line && 66 reconfigure $INSTANTIATED_SERVICE4$line && 66 enable $INSTANTIATED_SERVICE4$line
fi
done
##### INSTANTIATED USER SERVICES #####
getent passwd $(basename -a /home/*) | awk -F: '{print $1}' > home-users && cat home-users | while read line; do
if test -d /run/66/scandir && test -f /usr/share/66/service/user/$INSTANTIATED_USER_SERVICE1 || test -f /etc/66/service/user/$INSTANTIATED_USER_SERVICE1 ; then
echo "parsing/reconfiguring/starting/enabling packaged services"
runuser -u $line /usr/bin/66 parse $INSTANTIATED_USER_SERVICE1$line && runuser -u $line /usr/bin/66 reconfigure $INSTANTIATED_USER_SERVICE1$line && runuser -u $line /usr/bin/66 enable $INSTANTIATED_USER_SERVICE1$line && runuser -u $line /usr/bin/66 start $INSTANTIATED_USER_SERVICE1$line
fi
if [ ! -d /run/66/scandir ] && test -f /usr/share/66/service/user/$INSTANTIATED_USER_SERVICE1 || test -f /etc/66/service/user/$INSTANTIATED_USER_SERVICE1 ; then
echo "parsing/reconfiguring/enabling packaged services"
runuser -u $line /usr/bin/66 parse $INSTANTIATED_USER_SERVICE1$line && runuser -u $line /usr/bin/66 reconfigure $INSTANTIATED_USER_SERVICE1$line && runuser -u $line /usr/bin/66 enable $INSTANTIATED_USER_SERVICE1$line
fi
if test -d /run/66/scandir && test -f /usr/share/66/service/user/$INSTANTIATED_USER_SERVICE2 || test -f /etc/66/service/user/$INSTANTIATED_USER_SERVICE2 ; then
echo "parsing/reconfiguring/starting/enabling packaged services"
runuser -u $line /usr/bin/66 parse $INSTANTIATED_USER_SERVICE2$line && runuser -u $line /usr/bin/66 reconfigure $INSTANTIATED_USER_SERVICE2$line && runuser -u $line /usr/bin/66 enable $INSTANTIATED_USER_SERVICE2$line && runuser -u $line /usr/bin/66 start $INSTANTIATED_USER_SERVICE2$line
fi
if [ ! -d /run/66/scandir ] && test -f /usr/share/66/service/user/$INSTANTIATED_USER_SERVICE2 || test -f /etc/66/service/user/$INSTANTIATED_USER_SERVICE2 ; then
echo "parsing/reconfiguring/enabling packaged services"
runuser -u $line /usr/bin/66 parse $INSTANTIATED_USER_SERVICE2$line && runuser -u $line /usr/bin/66 reconfigure $INSTANTIATED_USER_SERVICE2$line && runuser -u $line /usr/bin/66 enable $INSTANTIATED_USER_SERVICE2$line
fi
if test -d /run/66/scandir && test -f /usr/share/66/service/user/$INSTANTIATED_USER_SERVICE3 || test -f /etc/66/service/user/$INSTANTIATED_USER_SERVICE3 ; then
echo "parsing/reconfiguring/starting/enabling packaged services"
runuser -u $line /usr/bin/66 parse $INSTANTIATED_USER_SERVICE3$line && runuser -u $line /usr/bin/66 reconfigure $INSTANTIATED_USER_SERVICE3$line && runuser -u $line /usr/bin/66 enable $INSTANTIATED_USER_SERVICE3$line && runuser -u $line /usr/bin/66 start $INSTANTIATED_USER_SERVICE3$line
fi
if [ ! -d /run/66/scandir ] && test -f /usr/share/66/service/user/$INSTANTIATED_USER_SERVICE3 || test -f /etc/66/service/user/$INSTANTIATED_USER_SERVICE3 ; then
echo "parsing/reconfiguring/enabling packaged services"
runuser -u $line /usr/bin/66 parse $INSTANTIATED_USER_SERVICE3$line && runuser -u $line /usr/bin/66 reconfigure $INSTANTIATED_USER_SERVICE3$line && runuser -u $line /usr/bin/66 enable $INSTANTIATED_USER_SERVICE3$line
fi
if test -d /run/66/scandir && test -f /usr/share/66/service/user/$INSTANTIATED_USER_SERVICE4 || test -f /etc/66/service/user/$INSTANTIATED_USER_SERVICE4 ; then
echo "parsing/reconfiguring/starting/enabling packaged services"
runuser -u $line /usr/bin/66 parse $INSTANTIATED_USER_SERVICE4$line && runuser -u $line /usr/bin/66 reconfigure $INSTANTIATED_USER_SERVICE4$line && runuser -u $line /usr/bin/66 enable $INSTANTIATED_USER_SERVICE4$line && runuser -u $line /usr/bin/66 start $INSTANTIATED_USER_SERVICE4$line
fi
if [ ! -d /run/66/scandir ] && test -f /usr/share/66/service/user/$INSTANTIATED_USER_SERVICE4 || test -f /etc/66/service/user/$INSTANTIATED_USER_SERVICE4 ; then
echo "parsing/reconfiguring/enabling packaged services"
runuser -u $line /usr/bin/66 parse $INSTANTIATED_USER_SERVICE4$line && runuser -u $line /usr/bin/66 reconfigure $INSTANTIATED_USER_SERVICE4$line && runuser -u $line /usr/bin/66 enable $INSTANTIATED_USER_SERVICE4$line
fi
done
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument '$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0
#!/bin/sh
# postrm script for s6-66-services.
#
# See: dh_installdeb(1).
set -e
# Summary of how this script can be called:
# * <postrm> 'remove'
# * <postrm> 'purge'
# * <old-postrm> 'upgrade' <new-version>
# * <new-postrm> 'failed-upgrade' <old-version>
# * <new-postrm> 'abort-install'
# * <new-postrm> 'abort-install' <old-version>
# * <new-postrm> 'abort-upgrade' <old-version>
# * <disappearer's-postrm> 'disappear' <overwriter>
# <overwriter-version>
# for details, see https://www.debian.org/doc/debian-policy/ or
# the debian-policy package.
SERVICE1="service1"
SERVICE2="service2"
SERVICE3="service3"
SERVICE4="service4"
USER_SERVICE1="user-service1"
USER_SERVICE2="user-service2"
USER_SERVICE3="user-service3"
USER_SERVICE4="user-service4"
INSTANTIATED_SERVICE1="scandir@"
INSTANTIATED_SERVICE2="instantiated-service2"
INSTANTIATED_SERVICE3="instantiated-service3"
INSTANTIATED_SERVICE4="instantiated-service4"
INSTANTIATED_USER_SERVICE1="instantiated-user-service1"
INSTANTIATED_USER_SERVICE2="instantiated-user-service2"
INSTANTIATED_USER_SERVICE3="instantiated-user-service3"
INSTANTIATED_USER_SERVICE4="instantiated-user-service4"
case "$1" in
remove)
;;
purge)
##### GLOBAL SERVICES #####
if test -f /etc/66/conf/$SERVICE1; then
echo "Purging /etc/66/conf/"$SERVICE1
rm /etc/66/service/$SERVICE1
fi
if test -f /usr/share/66/service/$SERVICE1; then
echo "Purging /usr/share/service/"$SERVICE1
rm /usr/share/66/service/$SERVICE1
fi
if test -e /etc/66/conf/$SERVICE1; then
echo "Purging /etc/66/conf/"$SERVICE1
rm -rf /etc/66/conf/$SERVICE1
fi
if test -f /etc/66/service/$SERVICE2; then
echo "Purging /etc/66/service/"$SERVICE2
rm /etc/66/service/$SERVICE2
fi
if test -f /usr/share/66/service/$SERVICE2; then
echo "Purging /usr/share/service/"$SERVICE2
rm /usr/share/66/service/$SERVICE2
fi
if test -e /etc/66/conf/$SERVICE2; then
echo "Purging /etc/66/conf/"$SERVICE2
rm -rf /etc/66/conf/$SERVICE2
fi
if test -f /etc/66/service/$SERVICE3; then
echo "Purging /etc/66/service/"$SERVICE3
rm /etc/66/service/$SERVICE3
fi
if test -f /usr/share/66/service/$SERVICE3; then
echo "Purging /usr/share/service/"$SERVICE3
rm /usr/share/66/service/$SERVICE3
fi
if test -e /etc/66/conf/$SERVICE3; then
echo "Purging /etc/66/conf/"$SERVICE3
rm -rf /etc/66/conf/$SERVICE3
fi
if test -f /etc/66/service/$SERVICE4; then
echo "Purging /etc/66/service/"$SERVICE4
rm /etc/66/service/$SERVICE4
fi
if test -f /usr/share/66/service/$SERVICE4; then
echo "Purging /usr/share/service/"$SERVICE4
rm /usr/share/66/service/$SERVICE4
fi
if test -e /etc/66/conf/$SERVICE4; then
echo "Purging /etc/66/conf/"$SERVICE4
rm -rf /etc/66/conf/$SERVICE4
fi
##### USER SERVICES #####
if test -f /etc/66/service/user/$USER_SERVICE1; then
echo "Purging /etc/66/service/user/"$USER_SERVICE1
rm /etc/66/service/user/$USER_SERVICE1
fi
if test -f /usr/share/66/service/user/$USER_SERVICE1; then
echo "Purging /etc/66/service/user/"$USER_SERVICE1
rm /usr/share/66/service/user/$USER_SERVICE1
fi
getent passwd $(basename -a /home/*) | awk -F: '{print $1}' > home-users && cat home-users | while read line; do
if test -f /home/$line/.66/service/$USER_SERVICE1; then
echo "Purging /home/user/.66/service/"$USER_SERVICE1
rm /home/$line/.66/service/$USER_SERVICE1
fi
if test -e /home/$line/.66/conf/$USER_SERVICE1; then
echo "Purging /home/$line/.66/conf/$"$USER_SERVICE1
rm -rf /home/$line/.66/conf/$USER_SERVICE1
fi
done
if test -f /etc/66/service/user/$USER_SERVICE2; then
echo "Purging /etc/66/service/user/"$USER_SERVICE2
rm -rf /etc/66/service/user/$USER_SERVICE2
fi
if test -f /usr/share/66/service/user/$USER_SERVICE2; then
echo "Purging /etc/66/service/user/"$USER_SERVICE2
rm /usr/share/66/service/user/$USER_SERVICE2
fi
getent passwd $(basename -a /home/*) | awk -F: '{print $1}' > home-users && cat home-users | while read line; do
if test -f /home/$line/.66/service/$USER_SERVICE2; then
echo "Purging /home/user/.66/service/"$USER_SERVICE2
rm /home/$line/.66/service/$USER_SERVICE2
fi
if test -e /home/$line/.66/conf/$USER_SERVICE2; then
echo "Purging /home/$line/.66/conf/$"$USER_SERVICE2
rm -rf /home/$line/.66/conf/$USER_SERVICE2
fi
done
if test -f /etc/66/service/user/$USER_SERVICE3; then
echo "Purging /etc/66/service/user/"$USER_SERVICE3
rm /etc/66/service/user/$USER_SERVICE3
fi
if test -f /usr/share/66/service/user/$USER_SERVICE3; then
echo "Purging /etc/66/service/user/"$USER_SERVICE3
rm /usr/share/66/service/user/$USER_SERVICE3
fi
getent passwd $(basename -a /home/*) | awk -F: '{print $1}' > home-users && cat home-users | while read line; do
if test -f /home/$line/.66/service/$USER_SERVICE3; then
echo "Purging /home/user/.66/service/"$USER_SERVICE3
rm /home/$line/.66/service/$USER_SERVICE3
fi
if test -e /home/$line/.66/conf/$USER_SERVICE3; then
echo "Purging /home/$line/.66/conf/$"$USER_SERVICE3
rm -rf /home/$line/.66/conf/$USER_SERVICE3
fi
done
if test -f /etc/66/service/user/$USER_SERVICE4; then
echo "Purging /etc/66/service/user/"$USER_SERVICE4
rm /etc/66/service/user/$USER_SERVICE4
fi
if test -f /usr/share/66/service/user/$USER_SERVICE4; then
echo "Purging /etc/66/service/user/"$USER_SERVICE4
rm /usr/share/66/service/user/$USER_SERVICE4
fi
getent passwd $(basename -a /home/*) | awk -F: '{print $1}' > home-users && cat home-users | while read line; do
if test -f /home/$line/.66/service/$USER_SERVICE4; then
echo "Purging /home/user/.66/service/"$USER_SERVICE4
rm /home/$line/.66/service/$USER_SERVICE4
fi
if test -e /home/$line/.66/conf/$USER_SERVICE4; then
echo "Purging /home/$line/.66/conf/$"$USER_SERVICE4
rm -rf /home/$line/.66/conf/$USER_SERVICE4
fi
done
##### INSTANTIATED SERVICES #####
if test -e /etc/66/service/${INSTANTIATED_SERVICE1%@}; then
echo "Purging /etc/66/service/"${INSTANTIATED_SERVICE1%@}
rm -rf /etc/66/service/${INSTANTIATED_SERVICE1%@}
fi
if test -e /usr/share/66/service/${INSTANTIATED_SERVICE1%@}; then
echo "Purging /usr/share/service/"${INSTANTIATED_SERVICE1%@}
rm -rf /usr/share/66/service/${INSTANTIATED_SERVICE1%@}
fi
if test -e /etc/66/conf/$INSTANTIATED_SERVICE1*; then
echo "Purging /etc/66/conf/"$INSTANTIATED_SERVICE1
rm -rf /etc/66/conf/$INSTANTIATED_SERVICE1*
fi
if test -e /etc/66/service/${INSTANTIATED_SERVICE2%@}; then
echo "Purging /etc/66/service/"${INSTANTIATED_SERVICE2%@}
rm -rf /etc/66/service/${INSTANTIATED_SERVICE2%@}
fi
if test -e /usr/share/66/service/${INSTANTIATED_SERVICE2%@}; then
echo "Purging /usr/share/service/"${INSTANTIATED_SERVICE2%@}
rm -rf /usr/share/66/service/${INSTANTIATED_SERVICE2%@}
fi
if test -e /etc/66/conf/$INSTANTIATED_SERVICE2*; then
echo "Purging /etc/66/conf/"$INSTANTIATED_SERVICE2
rm -rf /etc/66/conf/$INSTANTIATED_SERVICE2*
fi
if test -e /etc/66/service/${INSTANTIATED_SERVICE3%@}; then
echo "Purging /etc/66/service/"${INSTANTIATED_SERVICE3%@}
rm -rf /etc/66/service/${INSTANTIATED_SERVICE3%@}
fi
if test -e /usr/share/66/service/${INSTANTIATED_SERVICE3%@}; then
echo "Purging /usr/share/service/"${INSTANTIATED_SERVICE3%@}
rm -rf /usr/share/66/service/${INSTANTIATED_SERVICE3%@}
fi
if test -e /etc/66/conf/$INSTANTIATED_SERVICE3*; then
echo "Purging /etc/66/conf/"$INSTANTIATED_SERVICE3
rm -rf /etc/66/conf/$INSTANTIATED_SERVICE3*
fi
if test -e /etc/66/service/${INSTANTIATED_SERVICE4%@}; then
echo "Purging /etc/66/service/"${INSTANTIATED_SERVICE4%@}
rm -rf /etc/66/service/${INSTANTIATED_SERVICE4%@}
fi
if test -e /usr/share/66/service/${INSTANTIATED_SERVICE4%@}; then
echo "Purging /usr/share/service/"${INSTANTIATED_SERVICE4%@}
rm -rf /usr/share/66/service/${INSTANTIATED_SERVICE4%@}
fi
if test -e /etc/66/conf/$INSTANTIATED_SERVICE4*; then
echo "Purging /etc/66/conf/"$INSTANTIATED_SERVICE4
rm -rf /etc/66/conf/$INSTANTIATED_SERVICE4*
fi
##### INSTANTIATED USER SERVICES #####
if test -e /etc/66/service/user/$INSTANTIATED_USER_SERVICE1; then
echo "Purging /etc/66/service/user/"$INSTANTIATED_USER_SERVICE1
rm -rf /etc/66/service/user/$INSTANTIATED_USER_SERVICE1
fi
if test -e /usr/share/66/service/user/$INSTANTIATED_USER_SERVICE1; then
echo "Purging /etc/66/service/user/"$INSTANTIATED_USER_SERVICE1
rm -rf /usr/share/66/service/user/$INSTANTIATED_USER_SERVICE1
fi
getent passwd $(basename -a /home/*) | awk -F: '{print $1}' > home-users && cat home-users | while read line; do
if test -e /home/$line/.66/conf/$INSTANTIATED_USER_SERVICE1$line; then
echo "Purging /home/user/.66/conf/"$INSTANTIATED_USER_SERVICE1$line
rm -rf /home/$line/.66/conf/$INSTANTIATED_USER_SERVICE1$line
fi
if test -e /home/$line/.66/system/service/svc/$INSTANTIATED_USER_SERVICE1$line; then
echo "Purging /home/user/.66/system/service/svc/"$INSTANTIATED_USER_SERVICE1$line
rm -rf /home/$line/.66/system/service/svc/$INSTANTIATED_USER_SERVICE1$line*
fi
done
if test -e /etc/66/service/user/$INSTANTIATED_USER_SERVICE2; then
echo "Purging /etc/66/service/user/"$INSTANTIATED_USER_SERVICE2
rm -rf /etc/66/service/user/$INSTANTIATED_USER_SERVICE2
fi
if test -e /usr/share/66/service/user/$INSTANTIATED_USER_SERVICE2; then
echo "Purging /etc/66/service/user/"$INSTANTIATED_USER_SERVICE2
rm -rf /usr/share/66/service/user/$INSTANTIATED_USER_SERVICE2
fi
getent passwd $(basename -a /home/*) | awk -F: '{print $1}' > home-users && cat home-users | while read line; do
if test -e /home/$line/.66/conf/$INSTANTIATED_USER_SERVICE2$line; then
echo "Purging /home/user/.66/conf/"$INSTANTIATED_USER_SERVICE2$line
rm -rf /home/$line/.66/conf/$INSTANTIATED_USER_SERVICE2$line
fi
if test -e /home/$line/.66/system/service/svc/$INSTANTIATED_USER_SERVICE2$line; then
echo "Purging /home/user/.66/system/service/svc/"$INSTANTIATED_USER_SERVICE2$line
rm -rf /home/$line/.66/system/service/svc/$INSTANTIATED_USER_SERVICE2$line*
fi
done
if test -e /etc/66/service/user/$INSTANTIATED_USER_SERVICE3; then
echo "Purging /etc/66/service/user/"$INSTANTIATED_USER_SERVICE3
rm -rf /etc/66/service/user/$INSTANTIATED_USER_SERVICE3
fi
if test -e /usr/share/66/service/user/$INSTANTIATED_USER_SERVICE3; then
echo "Purging /etc/66/service/user/"$INSTANTIATED_USER_SERVICE3
rm -rf /usr/share/66/service/user/$INSTANTIATED_USER_SERVICE3
fi
getent passwd $(basename -a /home/*) | awk -F: '{print $1}' > home-users && cat home-users | while read line; do
if test -e /home/$line/.66/conf/$INSTANTIATED_USER_SERVICE3$line; then
echo "Purging /home/user/.66/conf/"$INSTANTIATED_USER_SERVICE3$line
rm -rf /home/$line/.66/conf/$INSTANTIATED_USER_SERVICE3$line
fi
if test -e /home/$line/.66/system/service/svc/$INSTANTIATED_USER_SERVICE3$line; then
echo "Purging /home/user/.66/system/service/svc/"$INSTANTIATED_USER_SERVICE3$line
rm -rf /home/$line/.66/system/service/svc/$INSTANTIATED_USER_SERVICE3$line*
fi
done
if test -e /etc/66/service/user/$INSTANTIATED_USER_SERVICE4; then
echo "Purging /etc/66/service/user/"$INSTANTIATED_USER_SERVICE4
rm -rf /etc/66/service/user/$INSTANTIATED_USER_SERVICE4
fi
if test -e /usr/share/66/service/user/$INSTANTIATED_USER_SERVICE4; then
echo "Purging /etc/66/service/user/"$INSTANTIATED_USER_SERVICE4
rm -rf /usr/share/66/service/user/$INSTANTIATED_USER_SERVICE4
fi
getent passwd $(basename -a /home/*) | awk -F: '{print $1}' > home-users && cat home-users | while read line; do
if test -e /home/$line/.66/conf/$INSTANTIATED_USER_SERVICE4$line; then
echo "Purging /home/user/.66/conf/"$INSTANTIATED_USER_SERVICE4$line
rm -rf /home/$line/.66/conf/$INSTANTIATED_USER_SERVICE4$line
fi
if test -e /home/$line/.66/system/service/svc/$INSTANTIATED_USER_SERVICE4$line; then
echo "Purging /home/user/.66/system/service/svc/"$INSTANTIATED_USER_SERVICE4$line
rm -rf /home/$line/.66/system/service/svc/$INSTANTIATED_USER_SERVICE4$line*
fi
done
;;
upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
;;
*)
echo "postrm called with unknown argument '$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#
exit 0
#!/usr/bin/make -f
include /usr/share/dpkg/default.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
#CONFIG_OPT += --package=scandir
#CONFIG_OPT += --version=0.4.0
CONFIG_OPT += --prefix=/usr
CONFIG_OPT += --exec_prefix=/usr
CONFIG_OPT += --bindir=/usr/bin
CONFIG_OPT += --datarootdir=/usr/share
CONFIG_OPT += --service_directory=/usr/share/66/service
CONFIG_OPT += --package_macro_dir=66
CONFIG_OPT += --livedir=/run/66
CONFIG_OPT += --service_userconf=.66/conf
CONFIG_OPT += --LOGGER=!yes
CONFIG_OPT += --USE_ENVIRONMENT=!no
CONFIG_OPT += --NOTIFY=!yes
CONFIG_OPT += --VERBOSITY_LEVEL=!3
%:
dh $@
override_dh_clean:
rm -rf README.md
dh_clean
override_dh_auto_configure:
./configure -- $(CONFIG_OPT)
override_dh_auto_install:
dh_auto_install --destdir=debian/66-service-scandir/
override_dh_auto_exec:
override_dh_auto_build:
3.0 (quilt)
# Example watch control file for uscan.
# Rename this file to "watch" and then you can run the "uscan" command
# to check for upstream updates and more.
# See uscan(1) for format.
# Compulsory line, this is a version 4 file.
version=4
# Direct Git.
opts="mode=git" https://git.obarun.org/66-service/debian/66-service-boot.git
# refs/tags/v([\d\.]+)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment