| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- mode: makefile; coding: utf-8 -*- |
| 3 |
|
| 4 |
%: |
| 5 |
dh $@ |
| 6 |
|
| 7 |
override_dh_auto_configure: |
| 8 |
dh_auto_configure -- --program-transform-name="s/icecast$$/icecast2/" --sysconfdir=/etc/icecast2 |
| 9 |
|
| 10 |
override_dh_auto_build: |
| 11 |
dh_auto_build -- PACKAGE=icecast2 pkgdatadir=/usr/share/icecast2 |
| 12 |
|
| 13 |
DEB_DESTDIR=$(CURDIR)/debian/icecast2 |
| 14 |
override_dh_auto_install: |
| 15 |
dh_auto_install -- pkgdatadir=/usr/share/icecast2 docdir=/usr/share/doc/icecast2 |
| 16 |
# Debian has a central copy of the GPL, no need to distribute again, and remove the extra changelog. |
| 17 |
rm -f $(DEB_DESTDIR)/usr/share/doc/icecast2/COPYING |
| 18 |
rm -f $(DEB_DESTDIR)/usr/share/doc/icecast2/ChangeLog |
| 19 |
# Move XSLT templates and CSS files to /etc and replace with symlinks |
| 20 |
for file in `cd $(DEB_DESTDIR)/usr/share && find icecast2 -type f \( -name *.xsl -or -name *.css \)`; do \ |
| 21 |
mkdir -p $(DEB_DESTDIR)/etc/`dirname $$file`; \ |
| 22 |
mv $(DEB_DESTDIR)/usr/share/$$file $(DEB_DESTDIR)/etc/$$file; \ |
| 23 |
ln -s /etc/$$file $(DEB_DESTDIR)/usr/share/$$file; \ |
| 24 |
done |
| 25 |
|
| 26 |
override_dh_installinit: |
| 27 |
dh_installinit --no-enable |
| 28 |
|
| 29 |
override_dh_installsystemd: |
| 30 |
dh_installsystemd --no-enable |