Browse Source

Add ocserv

docker
Travis Burtrum 5 years ago
parent
commit
926721904e
4 changed files with 118 additions and 0 deletions
  1. +24
    -0
      src/ocserv/.AURINFO
  2. +30
    -0
      src/ocserv/.SRCINFO
  3. +32
    -0
      src/ocserv/PKGBUILD
  4. +32
    -0
      src/ocserv/install.patch

+ 24
- 0
src/ocserv/.AURINFO View File

@ -0,0 +1,24 @@
pkgbase = ocserv
pkgdesc = OpenConnect VPN Server
pkgver = 0.8.4
pkgrel = 1
url = http://www.infradead.org/ocserv/
arch = i686
arch = x86_64
license = GPL2
depends = autogen
depends = libpcl
depends = gnutls
depends = http-parser
depends = libnl
depends = libsystemd
depends = pam
depends = protobuf-c
depends = talloc
depends = libseccomp
source = ftp://ftp.infradead.org/pub/ocserv/ocserv-0.8.4.tar.xz
backup = etc/ocserv.config
backup = etc/ocserv-passwd
pkgname = ocserv

+ 30
- 0
src/ocserv/.SRCINFO View File

@ -0,0 +1,30 @@
pkgbase = ocserv
pkgdesc = OpenConnect VPN Server
pkgver = 0.11.6
pkgrel = 1
url = https://gitlab.com/ocserv/ocserv
arch = i686
arch = x86_64
license = GPL2
makedepends = freeradius
makedepends = gperf
depends = autogen
depends = libpcl
depends = gnutls
depends = http-parser
depends = libnl
depends = libsystemd
depends = pam
depends = protobuf-c
depends = talloc
depends = libseccomp
depends = freeradius-client
depends = libev
depends = oath-toolkit
backup = etc/ocserv.config
backup = etc/ocserv-passwd
source = ocserv-0.11.6.tar.gz::https://gitlab.com/ocserv/ocserv/repository/archive.tar.gz?ref=ocserv_0_11_4
sha256sums = 9481858501a72dcb07f64a863d9ef97e31a1c29cfffa25547ee6d87759c9f05d
pkgname = ocserv

+ 32
- 0
src/ocserv/PKGBUILD View File

@ -0,0 +1,32 @@
# Maintainer: Brian Bidulock <bidulock@openss7.org>
pkgname=ocserv
pkgver=0.11.6
pkgrel=1
pkgdesc="OpenConnect VPN Server"
arch=('i686' 'x86_64')
url="https://gitlab.com/ocserv/ocserv"
license=('GPL2')
depends=('autogen' 'libpcl' 'gnutls' 'http-parser' 'libnl' 'libsystemd' 'pam' 'protobuf-c' 'talloc' 'libseccomp' 'freeradius-client' 'libev' 'oath-toolkit')
makedepends=('freeradius' 'gperf')
backup=('etc/ocserv.config' 'etc/ocserv-passwd')
source=("$pkgname-$pkgver.tar.gz::https://gitlab.com/ocserv/ocserv/repository/archive.tar.gz?ref=ocserv_0_11_6")
sha256sums=('975f5f5f785c5a21c8c10cdf11c71c8446f6c2cef88440cbd539a649867d0801')
prepare() {
cd ${pkgname}-${pkgname}_*
autoreconf -fi
}
build() {
cd ${pkgname}-${pkgname}_*
./configure --prefix=/usr --sbindir=/usr/bin
make
}
package() {
cd ${pkgname}-${pkgname}_*
make DESTDIR="$pkgdir" install
install -Dm0644 doc/sample.config "$pkgdir/etc/ocserv.config"
install -Dm0600 doc/sample.passwd "$pkgdir/etc/ocserv-passwd"
install -Dm0644 doc/systemd/standalone/ocserv.service "$pkgdir/usr/lib/systemd/system/ocserv.service"
}

+ 32
- 0
src/ocserv/install.patch View File

@ -0,0 +1,32 @@
diff -up src/ocserv-0.3.2/configure.ac.orig src/ocserv-0.3.2/configure.ac
--- src/ocserv-0.3.2/configure.ac.orig 2014-03-30 06:46:56.000000000 -0600
+++ src/ocserv-0.3.2/configure.ac 2014-03-30 06:56:15.000000000 -0600
@@ -65,9 +65,11 @@ AM_CONDITIONAL(HAVE_DBUS, test "x$dbus_e
if test "x$dbus_enabled" != xno;then
dbus_conf_dir=$($PKG_CONFIG dbus-1 --variable=sysconfdir)
-AC_SUBST(DBUS_CONFIG_DIR, [$dbus_conf_dir/etc/dbus-1/system.d/])
+AC_SUBST(dbusconfdir, [$dbus_conf_dir/dbus-1/system.d/])
fi
+AC_SUBST(systemddir, ['${libdir}/systemd/system'])
+
AC_ARG_WITH(protobuf,
AS_HELP_STRING([--without-protobuf], [use the included protobuf library]),
test_for_protobuf=$withval,
diff -up src/ocserv-0.3.2/doc/Makefile.am.orig src/ocserv-0.3.2/doc/Makefile.am
--- src/ocserv-0.3.2/doc/Makefile.am.orig 2014-03-30 06:47:13.000000000 -0600
+++ src/ocserv-0.3.2/doc/Makefile.am 2014-03-30 06:56:08.000000000 -0600
@@ -20,6 +20,9 @@ ocpasswd.8: ../src/ocpasswd-args.def
@AUTOGEN@ -L../src -DMAN_SECTION=8 -Tagman-cmd.tpl "$<".tmp && \
rm -f "$<".tmp
-install-data-local:
- -test -d "$(DBUS_CONFIG_DIR)" && ! test -f $(DBUS_CONFIG_DIR)/org.infradead.ocserv.conf && $(INSTALL_DATA) dbus/org.infradead.ocserv.conf $(DBUS_CONFIG_DIR)
- -test -d "/usr/lib/systemd/system/" && ! test -f /usr/lib/systemd/system/ocserv.service && $(INSTALL_DATA) systemd/standalone/ocserv.service /usr/lib/systemd/system/
+dist_dbusconf_DATA = \
+ dbus/org.infradead.ocserv.conf
+
+dist_systemd_DATA = \
+ systemd/socket-activated/ocserv.service \
+ systemd/socket-activated/ocserv.socket

Loading…
Cancel
Save