Add a libstrongswan-dev debian package with development headers
authorMartin Willi <martin@revosec.ch>
Thu, 19 Jul 2012 06:28:07 +0000 (08:28 +0200)
committerMartin Willi <martin@revosec.ch>
Thu, 19 Jul 2012 11:55:02 +0000 (13:55 +0200)
packages/strongswan/debian/control
packages/strongswan/debian/libstrongswan-dev.install [new file with mode: 0644]
packages/strongswan/debian/rules

index dbb12d4..7457b11 100644 (file)
@@ -34,8 +34,16 @@ Description: strongSwan plugin to interact with NetworkManager
 
 Package: libstrongswan
 Architecture: any
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: strongSwan utility and crypto library
  libstrongswan is the underlying library of charon and other strongSwan
  components. It is built in a modular way and is extendable through various
  plugins.
+
+Package: libstrongswan-dev
+Architecture: any
+Priority: optional
+Depends: ${misc:Depends}, libstrongswan (=${binary:Version})
+Section: devel
+Description: strongSwan development headers
+ C header files to develop with libstrongswan.
diff --git a/packages/strongswan/debian/libstrongswan-dev.install b/packages/strongswan/debian/libstrongswan-dev.install
new file mode 100644 (file)
index 0000000..476cd0e
--- /dev/null
@@ -0,0 +1,2 @@
+usr/lib/strongswan/include/config.h                    usr/lib/strongswan/include/
+usr/include/strongswan/*                                       usr/include/strongswan/
index 9ad64df..be1cc63 100755 (executable)
@@ -13,7 +13,8 @@ CONFIGURE_ARGS = \
        --enable-farp --enable-attr-sql --enable-dhcp --enable-openssl --enable-agent \
        --enable-pkcs11 --enable-ctr --enable-ccm --enable-gcm --enable-addrblock \
        --enable-nm  --disable-hmac --with-capabilities=libcap \
-       --with-ipsecdir=/usr/lib/strongswan --with-ipseclibdir=/usr/lib/strongswan
+       --with-ipsecdir=/usr/lib/strongswan --with-ipseclibdir=/usr/lib/strongswan \
+       --with-dev-headers=/usr/include/strongswan
 
 ifeq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
        CFLAGS += -O2