2023-06-20 23:18:02 +00:00
|
|
|
all: man deb
|
|
|
|
|
|
|
|
man: man/luser.1.md
|
2024-03-28 16:54:13 +00:00
|
|
|
mkdir -p luser/usr/share/man/man1/
|
2023-06-20 23:18:02 +00:00
|
|
|
pandoc man/luser.1.md -f markdown+hard_line_breaks -s -t man -o man/luser.1
|
|
|
|
cp man/luser.1 luser/usr/share/man/man1/
|
|
|
|
gzip -f luser/usr/share/man/man1/luser.1
|
|
|
|
deb: man ../requirments.txt ../run.py ../luser ../LICENSE
|
2024-03-28 16:54:13 +00:00
|
|
|
mkdir -p luser/var/luser/luser
|
2023-06-20 23:18:02 +00:00
|
|
|
cp -r ../luser/* luser/var/luser/luser/
|
|
|
|
cp ../run.py luser/var/luser/
|
|
|
|
cp ../LICENSE luser/var/luser/
|
2023-12-27 16:46:22 +00:00
|
|
|
chmod -w luser/DEBIAN/*
|
|
|
|
chmod +w luser/DEBIAN/control
|
2023-06-20 23:18:02 +00:00
|
|
|
dpkg-deb --build luser
|
2024-01-04 07:22:17 +00:00
|
|
|
chmod +w luser/DEBIAN/*
|
2023-06-20 23:18:02 +00:00
|
|
|
clean:
|
|
|
|
rm -f luser.deb
|
|
|
|
rm -f man/luser.1
|
|
|
|
rm -rf luser/var
|