From: Ben Pfaff Date: Thu, 30 Oct 2008 17:24:02 +0000 (-0700) Subject: Break HTTP parts of openflow-pki package into new openflow-pki-server package. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=686cd5c3d8dd7f23c320b4e3a3c25c59c355f78c;p=openvswitch Break HTTP parts of openflow-pki package into new openflow-pki-server package. --- diff --git a/debian/control.in b/debian/control.in index 65d537f1..b7aa8b54 100644 --- a/debian/control.in +++ b/debian/control.in @@ -39,7 +39,7 @@ Description: OpenFlow switch implementations Package: openflow-pki Architecture: all -Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}, openflow-common, apache2 +Depends: ${shlibs:Depends}, ${misc:Depends}, openflow-common Description: OpenFlow public key infrastructure openflow-pki provides PKI (public key infrastructure) support for OpenFlow switches and controllers, reducing the risk of @@ -47,6 +47,18 @@ Description: OpenFlow public key infrastructure . OpenFlow is a protocol for flow-based control over network switching. +Package: openflow-pki-server +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}, openflow-pki, apache2 +Description: OpenFlow public key infrastructure (HTTP server support) + openflow-pki-server provides HTTP access to the OpenFlow PKI (public + key infrastructure) maintained on the local machine by the + openflow-pki package. This HTTP access is needed for secure and + convenient OpenFlow switch setup using the ofp-switch-setup program + in the openflow-switch package. + . + OpenFlow is a protocol for flow-based control over network switching. + Package: openflow-controller Architecture: any Depends: ${shlibs:Depends}, openflow-common, openflow-pki diff --git a/debian/openflow-pki-server.apache2 b/debian/openflow-pki-server.apache2 new file mode 100644 index 00000000..a341c508 --- /dev/null +++ b/debian/openflow-pki-server.apache2 @@ -0,0 +1 @@ +Alias /openflow/pki/ /usr/share/openflow/pki/ diff --git a/debian/openflow-pki-server.dirs b/debian/openflow-pki-server.dirs new file mode 100644 index 00000000..7307777b --- /dev/null +++ b/debian/openflow-pki-server.dirs @@ -0,0 +1 @@ +etc/apache2/sites-available diff --git a/debian/openflow-pki-server.install b/debian/openflow-pki-server.install new file mode 100644 index 00000000..cd530ca4 --- /dev/null +++ b/debian/openflow-pki-server.install @@ -0,0 +1 @@ +_debian/utilities/ofp-pki-cgi usr/lib/cgi-bin diff --git a/debian/openflow-pki-server.postinst b/debian/openflow-pki-server.postinst new file mode 100755 index 00000000..d161a98a --- /dev/null +++ b/debian/openflow-pki-server.postinst @@ -0,0 +1,44 @@ +#!/bin/sh +# postinst script for openflow +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + +case "$1" in + configure) + # Enable site under Apache. + a2ensite openflow-pki >/dev/null + if command -v invoke-rc.d >/dev/null 2>&1; then + invoke-rc.d apache2 force-reload || : + else + [ -x /etc/init.d/apache2 ] && /etc/init.d/apache2 force-reload || : + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 + + diff --git a/debian/openflow-pki.apache2 b/debian/openflow-pki.apache2 deleted file mode 100644 index a341c508..00000000 --- a/debian/openflow-pki.apache2 +++ /dev/null @@ -1 +0,0 @@ -Alias /openflow/pki/ /usr/share/openflow/pki/ diff --git a/debian/openflow-pki.dirs b/debian/openflow-pki.dirs deleted file mode 100644 index 7307777b..00000000 --- a/debian/openflow-pki.dirs +++ /dev/null @@ -1 +0,0 @@ -etc/apache2/sites-available diff --git a/debian/openflow-pki.install b/debian/openflow-pki.install deleted file mode 100644 index cd530ca4..00000000 --- a/debian/openflow-pki.install +++ /dev/null @@ -1 +0,0 @@ -_debian/utilities/ofp-pki-cgi usr/lib/cgi-bin diff --git a/debian/openflow-pki.postinst b/debian/openflow-pki.postinst index 8a687179..5cf6515d 100755 --- a/debian/openflow-pki.postinst +++ b/debian/openflow-pki.postinst @@ -23,14 +23,6 @@ case "$1" in if test ! -d /usr/share/openflow/pki; then ofp-pki init fi - - # Enable site under Apache. - a2ensite openflow-pki >/dev/null - if command -v invoke-rc.d >/dev/null 2>&1; then - invoke-rc.d apache2 force-reload || : - else - [ -x /etc/init.d/apache2 ] && /etc/init.d/apache2 force-reload || : - fi ;; abort-upgrade|abort-remove|abort-deconfigure) diff --git a/debian/rules b/debian/rules index 238414fc..d5f55c08 100755 --- a/debian/rules +++ b/debian/rules @@ -104,7 +104,7 @@ install-indep: build-indep cp _debian/openflow.tar.gz $(MODDIR) cd debian; cp changelog control compat *.modules.in rules $(MODDIR)/debian cd debian/openflow-datapath-source/usr/src && tar -c modules | bzip2 -9 > openflow-datapath.tar.bz2 && rm -rf modules - install -m644 debian/openflow-pki.apache2 debian/openflow-pki/etc/apache2/sites-available/openflow-pki + install -m644 debian/openflow-pki-server.apache2 debian/openflow-pki-server/etc/apache2/sites-available/openflow-pki dh_install -i install-arch: build-arch