Skip to content
Permalink
Browse files

added systemd unit file and added to makefile and install procedure

  • Loading branch information...
jankammerath committed Dec 31, 2017
1 parent 220a9d5 commit feb6d8a6204bc06a6b9c63a708fe0ba438a28de2
Showing with 22 additions and 7 deletions.
  1. +4 −0 Makefile
  2. +2 −2 debian.changelog
  3. +9 −0 iptvx.service
  4. +6 −4 iptvx.spec
  5. +1 −1 mksrcpkg.sh
@@ -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
@@ -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
@@ -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
@@ -0,0 +1,9 @@
[Unit]
Description=iptvx epg and recording service

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

[Install]
WantedBy=multi-user.target
@@ -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/
@@ -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.
You can’t perform that action at this time.