Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added systemd unit file and added to makefile and install procedure
  • Loading branch information
jankammerath committed Dec 31, 2017
1 parent 220a9d5 commit feb6d8a
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 7 deletions.
4 changes: 4 additions & 0 deletions Makefile
Expand Up @@ -20,9 +20,11 @@ install:
mkdir -p /var/iptvx/data/epg
mkdir -p /var/iptvx/data/logo
cp app /var/iptvx/ -R
cp data/db /var/iptvx/db
chmod 755 /usr/bin/iptvx
chmod 644 /var/iptvx -R
chmod 644 /etc/iptvx -R
cp iptvx.service /etc/systemd/system/iptvx.service

clean:
rm -f bin/iptvx
Expand All @@ -37,6 +39,8 @@ packinstall:
mkdir -p $(DESTDIR)/var/iptvx/data/epg
mkdir -p $(DESTDIR)/var/iptvx/data/logo
cp app $(DESTDIR)/var/iptvx/ -R
cp data/db $(DESTDIR)/var/iptvx/db
chmod 755 $(DESTDIR)/usr/bin/iptvx
chmod 644 $(DESTDIR)/var/iptvx -R
chmod 644 $(DESTDIR)/etc/iptvx -R
cp iptvx.service $(DESTDIR)/etc/systemd/system/iptvx.service
4 changes: 2 additions & 2 deletions debian.changelog
@@ -1,5 +1,5 @@
iptvx (0.5) stable; urgency=low

* Release of iptvx 0.5 beta
* Release of iptvx 0.6 beta

-- Jan Kammerath <dev@iptvx.org> Mon, 01 Jan 2017 10:00:00 +0100
-- Jan Kammerath <dev@iptvx.org> Mon, 01 Jan 2018 10:00:00 +0100
9 changes: 9 additions & 0 deletions iptvx.service
@@ -0,0 +1,9 @@
[Unit]
Description=iptvx epg and recording service

[Service]
Type=simple
ExecStart=/usr/bin/iptvx --daemon

[Install]
WantedBy=multi-user.target
10 changes: 6 additions & 4 deletions iptvx.spec
Expand Up @@ -65,11 +65,13 @@ chmod 755 %{buildroot}%{_bindir}/iptvx
mkdir -p %{buildroot}%{_sysconfdir}/iptvx
cp cfg/iptvx.conf %{buildroot}%{_sysconfdir}/iptvx/iptvx.conf
cp cfg/channels.conf %{buildroot}%{_sysconfdir}/iptvx/channels.conf
mkdir -p %{buildroot}%{_datadir}/iptvx/data/epg
mkdir -p %{buildroot}%{_datadir}/iptvx/data/logo
cp app %{buildroot}%{_datadir}/iptvx/ -R
mkdir -p %{buildroot}%{_var}/iptvx/data/epg
mkdir -p %{buildroot}%{_var}/iptvx/data/logo
cp app %{buildroot}%{_var}/iptvx/ -R
cp data/db %{buildroot}%{_var}/iptvx/db
chmod 644 %{buildroot}%{_var}/iptvx/ -R

%files
%{_bindir}/iptvx
%{_sysconfdir}/iptvx/
%{_datadir}/iptvx/
%{_var}/iptvx/
2 changes: 1 addition & 1 deletion mksrcpkg.sh
@@ -1,2 +1,2 @@
#!/bin/bash
tar --transform "s,./,$1/," -zcvf $1.tar.gz ./app/ ./cfg/ ./src/ ./Makefile
tar --transform "s,./,$1/," -zcvf $1.tar.gz ./app/ ./cfg/ ./src/ ./data/db ./Makefile ./iptvx.service

0 comments on commit feb6d8a

Please sign in to comment.