Skip to content

Commit

Permalink
Prepare dpkg-buildpackage
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdewid committed Aug 19, 2023
1 parent ff25927 commit 07834f2
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
10 changes: 10 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Source: glonax
Section: restricted/base
Priority: optional
Maintainer: Laixer Equipment B.V. <info@laixer.com>
Standards-Version: 3.0.1
Build-Depends: debhelper (>= 4)

Package: glonax
Architecture: any
Description: Glonax heavy machine controller
27 changes: 27 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/make -f

clean:
cargo clean

build:
cargo build --release

binary:
dh_clean
mkdir -p debian/glonax/usr/local/bin
cp ./target/release/glonax-proxyd debian/glonax/usr/local/bin
cp ./target/release/glonax-csim debian/glonax/usr/local/bin
cp ./target/release/glonax-ecud debian/glonax/usr/local/bin
cp ./target/release/glonax-gnssd debian/glonax/usr/local/bin
cp ./target/release/glonax-input debian/glonax/usr/local/bin
cp ./target/release/glonax-netctl debian/glonax/usr/local/bin
cp ./target/release/glonax-agent debian/glonax/usr/local/bin
cp ./target/release/glonax-proxyd debian/glonax/usr/local/bin
cp ./contrib/systemd/glonax-proxy.service debian/glonax-proxy.service
cp ./contrib/systemd/glonax-agent.service debian/glonax-agent.service
dh_installsystemd --name=glonax-proxy
dh_installsystemd --name=glonax-agent
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb

0 comments on commit 07834f2

Please sign in to comment.