Skip to content

Commit

Permalink
Fixup for building debian packages
Browse files Browse the repository at this point in the history
  • Loading branch information
MikailBag committed Sep 18, 2019
1 parent d7b528f commit cbe0e5f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions Version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.1
2 changes: 2 additions & 0 deletions deb/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ cd data; tar --owner=root -cvJf ../data.tar.xz .; cd ..

mkdir control
cp ../manifest.txt control/control
sed -i 's/^Version:.*$/Version: '"$(cat ../../Version.txt)"'/g' /control/control
sed -i 's/^Architecture:.*$/Architecture: '"$(dpkg --print-architecture)"'/g' control/control
cp ../scripts/* control/ || true
cd control; tar --owner=root -cvJf ../control.tar.xz .; cd ..

Expand Down
7 changes: 3 additions & 4 deletions deb/manifest.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
Package: jjs
Version: 0.TODO
Architecture: all
Maintainer: TODO <[email protected]>
Installed-Size: 64
Version:
Architecture:
Maintainer: Mikail Bagishov <[email protected]>
Suggests: postgresql
Description: JJS testing system
JJS testing system (see https://github.com/MikailBag/jjs)
2 changes: 1 addition & 1 deletion deb/scripts/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ adduser --system --ingroup jjs --home /var/lib/jjs --disabled-login jjs

su -c 'jjs-mkroot /var/lib/jjs /usr/share/jjs/example-config' -s "$SHELL" jjs

# так, конфиг я сгенерил, а вот пилить говносистемд мне влом
# TODO: proper systemd unit for jjs

0 comments on commit cbe0e5f

Please sign in to comment.