From b516f22c1e1454b4af8bafaebf385d01aee6c0ef Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Sat, 20 Sep 2014 18:53:27 +0200 Subject: [PATCH] fixing makefile, adding dirs and postinst for alternc-api package --- api/Makefile | 4 ++-- debian/alternc-api.dirs | 3 +++ debian/alternc-api.postinst | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 debian/alternc-api.dirs create mode 100644 debian/alternc-api.postinst diff --git a/api/Makefile b/api/Makefile index 9676baa3..6db8661d 100644 --- a/api/Makefile +++ b/api/Makefile @@ -20,6 +20,6 @@ install: install -m 0644 -g root -o root api.conf $(DESTDIR)/etc/alternc/apache-panel.d install -m 0644 api.sql $(DESTDIR)/usr/share/alternc/ install -m 0644 -g 1999 -o root panel/* $(DESTDIR)/usr/share/alternc/panel/admin/api/ - install -m 0644 ../lib/Alternc/Api/* $(DESTDIR)/usr/share/php/Alternc/Api/ - install -m 0644 ../lib/Alternc/Api/Auth/* $(DESTDIR)/usr/share/php/Alternc/Api/Auth/ + install -m 0644 ../lib/Alternc/Api/*.php $(DESTDIR)/usr/share/php/Alternc/Api/ + install -m 0644 ../lib/Alternc/Api/Auth/*.php $(DESTDIR)/usr/share/php/Alternc/Api/Auth/ diff --git a/debian/alternc-api.dirs b/debian/alternc-api.dirs new file mode 100644 index 00000000..d0ee304c --- /dev/null +++ b/debian/alternc-api.dirs @@ -0,0 +1,3 @@ +etc/alternc/apache-panel.d +usr/share/alternc/panel/admin/api +usr/share/php/Alternc/Api/Auth diff --git a/debian/alternc-api.postinst b/debian/alternc-api.postinst new file mode 100644 index 00000000..7d9d1d4a --- /dev/null +++ b/debian/alternc-api.postinst @@ -0,0 +1,36 @@ +#!/bin/bash -e + + +case "$1" in + configure) + + echo "Installing mysql table" + mysql --defaults-file=/etc/alternc/my.cnf \ + &2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. +#DEBHELPER# + +# vim: et sw=4