68 lines
1.4 KiB
Plaintext
68 lines
1.4 KiB
Plaintext
|
#!/usr/bin/make -f
|
||
|
|
||
|
# Uncomment this to turn on verbose mode.
|
||
|
#export DH_VERBOSE=1
|
||
|
|
||
|
DESTDIR=$(CURDIR)/debian/gallery3
|
||
|
GDIR=$(DESTDIR)/usr/share/gallery3
|
||
|
GCONFDIR=$(DESTDIR)/etc/gallery3
|
||
|
GDATADIR=$(DESTDIR)/var/lib/gallery3/g3data
|
||
|
DOCDIR=$(DESTDIR)/usr/share/doc/gallery3
|
||
|
|
||
|
|
||
|
clean:
|
||
|
dh_testdir
|
||
|
dh_testroot
|
||
|
rm -f build-stamp configure-stamp
|
||
|
dh_clean
|
||
|
|
||
|
install:
|
||
|
dh_testdir
|
||
|
dh_testroot
|
||
|
dh_prep
|
||
|
dh_installdirs
|
||
|
|
||
|
# commands to install the files into debian/gallery3.
|
||
|
install -m 755 -o root -g root -d $(GDIR)
|
||
|
install -m 755 -o root -g root -d $(GCONFDIR)
|
||
|
install -m 755 -o www-data -g www-data -d $(GDATADIR)
|
||
|
install -m 644 -o root -g root *.php $(GDIR)
|
||
|
for dir in * ; do \
|
||
|
if [ -d "$$dir" ]; then \
|
||
|
case "$$dir" in \
|
||
|
debian) \
|
||
|
echo "skipping dir $$dir" \
|
||
|
;; \
|
||
|
*) \
|
||
|
cp -ar $$dir $(GDIR)/$$dir ; \
|
||
|
find $(GDIR)/$$dir -type f -exec chmod 644 {} \; ;\
|
||
|
find $(GDIR)/$$dir -type f -exec chown root:root {} \; ;\
|
||
|
esac \
|
||
|
fi \
|
||
|
done
|
||
|
install -m 644 debian/apache.conf $(GCONFDIR)
|
||
|
|
||
|
build:
|
||
|
# Build architecture-dependent files here.
|
||
|
binary-arch: install
|
||
|
# We have nothing to do by default.
|
||
|
|
||
|
# Build architecture-independent files here.
|
||
|
binary-indep: install
|
||
|
dh_testdir
|
||
|
dh_testroot
|
||
|
dh_installdocs
|
||
|
dh_link
|
||
|
dh_fixperms -Xalbums -Xg3data
|
||
|
dh_installchangelogs
|
||
|
dh_compress
|
||
|
dh_installdebconf -pgallery3
|
||
|
dh_installdeb
|
||
|
dh_shlibdeps
|
||
|
dh_gencontrol
|
||
|
dh_md5sums
|
||
|
dh_builddeb
|
||
|
|
||
|
binary: binary-indep
|
||
|
.PHONY: clean binary-indep install
|