diff --git a/Makefile b/Makefile index 9cfa2766..5871b584 100644 --- a/Makefile +++ b/Makefile @@ -93,3 +93,6 @@ install-squirrelmail: install-upnp: make -C upnp install DESTDIR=$(DESTDIR) +install-api: + make -C api install DESTDIR=$(DESTDIR) + diff --git a/api/Makefile b/api/Makefile new file mode 100644 index 00000000..9676baa3 --- /dev/null +++ b/api/Makefile @@ -0,0 +1,25 @@ +# ---------------------------------------------------------------------- +# LICENSE +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License (GPL) +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# To read the license please visit http://www.gnu.org/copyleft/gpl.html +# ---------------------------------------------------------------------- +# Purpose of file: Install the files of alternc-api package +# ---------------------------------------------------------------------- + +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/ + diff --git a/debian/changelog b/debian/changelog index d1a3051b..e6e5b2a9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,8 +2,9 @@ alternc (3.3~rc1) stable; urgency=low * unofficial Prerelease of AlternC 3.3 * update_domaines now in PHP and using classes and hooks instead of BASH + * AlternC-API package is now included. Compatibile with alternc >= 3.0 - -- Benjamin Sonntag Thu, 26 Jun 2014 15:13:00 +0200 + -- Benjamin Sonntag Thu, 20 Sep 2014 18:13:00 +0200 alternc (3.2.1) stable; urgency=low diff --git a/debian/control b/debian/control index 04c2eefb..5651fb53 100644 --- a/debian/control +++ b/debian/control @@ -311,3 +311,22 @@ Description-fr.UTF-8: Client UPnP pour AlternC . Pour plus d'informations, consultez http://www.alternc.com/ +Package: alternc-api +Architecture: all +Pre-depends: debconf (>= 0.5.00) | debconf-2.0 +Depends: debianutils (>= 1.13.1) + , alternc (>= 3.0) + , ${misc:Depends} +Conflicts: alternc (<< 3.0) +Description: Rest or get/post API for AlternC + AlternC is a mutualized hosting software manager for Linux. + It allows you to manage your websites, domains, ftp, emails, aliases, + web statistics, mailing-lists, jabber accounts, etc. + . + This extension to AlternC is installing and configuring properly the + GET/POST/REST API. You can then use https://yourpanel/api/ as an endpoint + to launch remotely any functions of the hosting control panel. + . + More information at http://www.alternc.com/ +Homepage: http://www.alternc.com/ + diff --git a/debian/rules b/debian/rules index 1ca59c45..cd53887f 100755 --- a/debian/rules +++ b/debian/rules @@ -20,6 +20,7 @@ override_dh_install: $(MAKE) install-upnp DESTDIR=$(CURDIR)/debian/alternc-upnp $(MAKE) install-awstats DESTDIR=$(CURDIR)/debian/alternc-awstats $(MAKE) install-slave DESTDIR=$(CURDIR)/debian/alternc-slave + $(MAKE) install-api DESTDIR=$(CURDIR)/debian/alternc-api %: dh $@