Skip to content

Commit

Permalink
Fix Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
agapoff committed Nov 16, 2016
1 parent 6dca90e commit ac41523
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
install:
install -d -m 755 ${DESTDIR}/opt/tcptracer
install -d -m 755 ${DESTDIR}/opt/tcptracer/Output
install -d -m 755 ${DESTDIR}/var/log/tcptracer
install -d -m 755 ${DESTDIR}/etc/logrotate.d
install -d -m 755 ${DESTDIR}/usr/lib/systemd/system/
install -m 755 src/tcptracer* ${DESTDIR}/opt/tcptracer/
install -m 644 src/Output/* ${DESTDIR}/opt/tcptracer/Output
install -m 755 src/config.ini ${DESTDIR}/opt/tcptracer/
install -m 755 logrotate.d/tcptracer ${DESTDIR}/etc/logrotate.d/
install -m 755 systemd/tcptracer.service ${DESTDIR}/usr/lib/systemd/system/
5 changes: 4 additions & 1 deletion build_rpm.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/sh
PKG_NAME=`basename $(pwd)`
tar cvzf ../${PKG_NAME}.tar.gz --exclude=*/.git ../${PKG_NAME}/ ; rpmbuild -ta ../${PKG_NAME}.tar.gz; rm -f ../${PKG_NAME}.tar.gz
tar cvzf ../${PKG_NAME}.tar.gz --exclude=*/.git ../${PKG_NAME}/
rpmbuild --define "_topdir %(pwd)/../rpm-build" --define "_builddir %{_topdir}" --define "_rpmdir %{_topdir}" \
--define '_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' --define "vendor Quotix" -ta ../${PKG_NAME}.tar.gz
rm -f ../${PKG_NAME}.tar.gz

0 comments on commit ac41523

Please sign in to comment.