diff --git a/debian/authd-example-broker.install b/debian/authd-example-broker.install new file mode 100644 index 000000000..528b7891e --- /dev/null +++ b/debian/authd-example-broker.install @@ -0,0 +1,7 @@ +usr/bin/examplebroker-bin /usr/libexec/authd-examplebroker + +examplebroker/com.ubuntu.authd.ExampleBroker.conf /usr/share/dbus-1/system.d +examplebroker/ExampleBroker /etc/authd/brokers.d +examplebroker/com.ubuntu.authd.ExampleBroker.service /usr/share/dbus-1/system-services + +systemd/authd-examplebroker.* /usr/lib/systemd/system/ diff --git a/debian/control b/debian/control index 08bdd8575..b00828dec 100644 --- a/debian/control +++ b/debian/control @@ -44,3 +44,13 @@ Description: ${source:Synopsis} . This package contains the authentication daemon together with the PAM & NSS modules. + +Package: authd-example-broker +Architecture: any +Built-Using: ${misc:Built-Using}, +Depends: ${shlibs:Depends}, + ${misc:Depends}, +Description: ${source:Synopsis} - Example broker + ${source:Extended-Description} + . + This package contains an example broker for testing and autopkgtests purposes. diff --git a/debian/rules b/debian/rules index 1e36e7ba3..ccd46dd0c 100755 --- a/debian/rules +++ b/debian/rules @@ -37,6 +37,8 @@ export AUTHD_SKIP_EXTERNAL_DEPENDENT_TESTS=1 # Defines the targets to be built as part of dh_auto_build export DH_GOLANG_BUILDPKG := $(AUTHD_GO_PACKAGE)/... +EXAMPLE_BROKER_BUILD_TAG := with_standalone_examplebroker + # Run go generate on the targets export DH_GOLANG_GO_GENERATE := 1 @@ -78,7 +80,10 @@ override_dh_auto_build: -Dt $(BUILD_GOPATH)/github.com/msteinert/pam/v2/cmd/pam-moduler # Build the daemon and libraries defined in $(DH_GOLANG_BUILDPKG) - dh_auto_build + # but we manually include the example broker because otherwise it's not + # part of the normal install. + dh_auto_build -- -tags $(EXAMPLE_BROKER_BUILD_TAG) \ + $(AUTHD_GO_PACKAGE)/examplebroker/examplebroker-bin override_dh_auto_install: dh_auto_install --destdir=debian/tmp -- --no-source