1
0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-09-28 19:51:48 +02:00
fastnetmon-rewritten/docs/BUILDING_DEB_PACKAGE.md

21 lines
846 B
Markdown
Raw Normal View History

2015-06-02 18:43:16 +02:00
# Short reference about building deb packages
```bash
mkdir /usr/src/fastnetmon_deb
cd /usr/src/fastnetmon_deb
export PACKAGE_VERSION=1.1
wget https://github.com/FastVPSEestiOu/fastnetmon/archive/master.tar.gz -O"fastnetmon_$PACKAGE_VERSION.orig.tar.gz"
tar -xf "fastnetmon_$PACKAGE_VERSION.orig.tar.gz"
mv fastnetmon-master "fastnetmon-$PACKAGE_VERSION"
cd "fastnetmon-$PACKAGE_VERSION"
2015-06-03 17:40:39 +02:00
# Create symlinks for init files for systev and systemd
ln -s ../src/fastnetmon_init_script_debian_6_7 debian/fastnetmon.init
ln -s ../src/fastnetmon.service debian/fastnetmon.service
2015-06-04 15:25:04 +02:00
# We need this for Debian https://lintian.debian.org/tags/systemd-service-file-refers-to-obsolete-target.html
# But RHEL7 still uses it
sed -i 's/syslog.target //' src/fastnetmon.service
2015-06-04 16:34:16 +02:00
dpkg-source --commit . fix_systemd_service
2015-06-04 15:25:04 +02:00
# enter any patch name
2015-06-02 18:43:16 +02:00
debuild -us -uc
```