diff options
Diffstat (limited to '')
-rw-r--r-- | cerberus-logging/PKGBUILD | 32 | ||||
-rw-r--r-- | cerberus-logging/cerberus-logging.install | 20 | ||||
l--------- | cerberus-logging/upload (renamed from dooble-common/upload) | 0 | ||||
-rw-r--r-- | cerberus-securetty/PKGBUILD | 30 | ||||
-rw-r--r-- | cerberus-securetty/cerberus-securetty.install | 20 | ||||
l--------- | cerberus-securetty/upload (renamed from dooble-qt4/upload) | 0 | ||||
-rw-r--r-- | cerberus/PKGBUILD | 63 | ||||
-rw-r--r-- | cerberus/cerberus.install | 20 | ||||
l--------- | cerberus/upload (renamed from dooble/upload) | 0 |
9 files changed, 185 insertions, 0 deletions
diff --git a/cerberus-logging/PKGBUILD b/cerberus-logging/PKGBUILD new file mode 100644 index 0000000..7097693 --- /dev/null +++ b/cerberus-logging/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Mattias Andrée <m@`base64 -d`(bWFhbmRyZWU).se> + +pkgname=cerberus-logging +pkgver=1428445270 +pkgrel=1 +pkgdesc="Log-in logging extension for cerberus" +url="https://github.com/GNU-Pony/cerberus-logging" +arch=(i686 x86_64) +license=(GPL3) +depends=(glibc coreutils sh) +optdepends=('audit: for logging with audit') +makedepends=(make coreutils gcc glibc audit texinfo) +install=cerberus-logging.install +source=("${url}/archive/${pkgver}.tar.gz") +sha256sums=(fedb5423eef21f108f1a293c17e625a3e49be9b891737b65b1284b6817ef59f1) + +build() { + cd "${srcdir}/cerberus-logging-${pkgver}" + + LDFLAGS= make PKGNAME="${pkgname}" info btmp utmp lastlog syslog audit +} + +package() { + cd "${srcdir}/cerberus-logging-${pkgver}" + + make PKGNAME="${pkgname}" DESTDIR="${pkgdir}" install-base install-info \ + install-btmp install-utmp install-lastlog install-syslog install-audit + + _dir="${pkgdir}/usr/share/licenses/${pkgname}" + ln -sf -- "/usr/share/licenses/common/GPL3" "${_dir}/LICENSE" +} + diff --git a/cerberus-logging/cerberus-logging.install b/cerberus-logging/cerberus-logging.install new file mode 100644 index 0000000..dd40e58 --- /dev/null +++ b/cerberus-logging/cerberus-logging.install @@ -0,0 +1,20 @@ +_file="cerberus-logging" + +infodir="usr/share/info" +file="${_file}.info" + + +post_install() { + [[ -x "usr/bin/install-info" ]] || return 0 + install-info -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null +} + +post_upgrade() { + post_install "$1" +} + +pre_remove() { + [[ -x "usr/bin/install-info" ]] || return 0 + install-info --delete -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null +} + diff --git a/dooble-common/upload b/cerberus-logging/upload index 1e7a8be..1e7a8be 120000 --- a/dooble-common/upload +++ b/cerberus-logging/upload diff --git a/cerberus-securetty/PKGBUILD b/cerberus-securetty/PKGBUILD new file mode 100644 index 0000000..3c1f63b --- /dev/null +++ b/cerberus-securetty/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Mattias Andrée <m@`base64 -d`(bWFhbmRyZWU).se> + +pkgname=cerberus-securetty +pkgver=1428445363 +pkgrel=1 +pkgdesc="securetty support for cerberus" +url="https://github.com/GNU-Pony/cerberus-securetty" +arch=(i686 x86_64) +license=(GPL3) +depends=(grep coreutils sh) +makedepends=(make coreutils texinfo) +install=cerberus-securetty.install +source=("${url}/archive/${pkgver}.tar.gz") +sha256sums=(b63ed4b5f60b1c9731a801da01f8b04484cd930c78a56a264096d60594642fc8) + +build() { + cd "${srcdir}/cerberus-securetty-${pkgver}" + + make PKGNAME="${pkgname}" +} + +package() { + cd "${srcdir}/cerberus-securetty-${pkgver}" + + make PKGNAME="${pkgname}" DESTDIR="${pkgdir}" install + + _dir="${pkgdir}/usr/share/licenses/${pkgname}" + ln -sf -- "/usr/share/licenses/common/GPL3" "${_dir}/LICENSE" +} + diff --git a/cerberus-securetty/cerberus-securetty.install b/cerberus-securetty/cerberus-securetty.install new file mode 100644 index 0000000..590c85d --- /dev/null +++ b/cerberus-securetty/cerberus-securetty.install @@ -0,0 +1,20 @@ +_file="cerberus-securetty" + +infodir="usr/share/info" +file="${_file}.info" + + +post_install() { + [[ -x "usr/bin/install-info" ]] || return 0 + install-info -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null +} + +post_upgrade() { + post_install "$1" +} + +pre_remove() { + [[ -x "usr/bin/install-info" ]] || return 0 + install-info --delete -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null +} + diff --git a/dooble-qt4/upload b/cerberus-securetty/upload index 1e7a8be..1e7a8be 120000 --- a/dooble-qt4/upload +++ b/cerberus-securetty/upload diff --git a/cerberus/PKGBUILD b/cerberus/PKGBUILD new file mode 100644 index 0000000..5a1e7f7 --- /dev/null +++ b/cerberus/PKGBUILD @@ -0,0 +1,63 @@ +# Maintainer: Mattias Andrée <m@`base64 -d`(bWFhbmRyZWU).se> + +pkgname=cerberus +pkgver=1598672167 +pkgrel=1 +pkgdesc="A compile-time configurable minimal login program that uses libpassphrase" +url="https://github.com/GNU-Pony/cerberus" +arch=(i686 x86_64) +license=(GPL3) +depends=(glibc 'libpassphrase>=1400850322' linux) +makedepends=(make coreutils gcc texinfo) # pam +install=cerberus.install +source=("${url}/archive/${pkgver}.tar.gz") +sha256sums=(bb547c467a5735d048aa815e5466df4c8d6910b8f7b710fa18c77a86df0bb98c) + +# The dependency on `linux` can be removed if both `OWN_VCS` and `OWN_VCSA` is removed. +# The dependency on `pam` can removed if `auth` is change to not be `pam`. +# See `info cerberus configuring` for details on how to configure `cerberus`. +# Works on armv6h (tested on Raspberry Pi) unless `auth=pam`. + + +build() { + cd "${srcdir}/cerberus-${pkgver}" + + auth=crypt # can also be set to `crypt` or `none` # pam + cpp_defs=(OWN_VCS OWN_VCSA USE_TTY_GROUP) + path_user=/usr/local/bin:/usr/bin + path_root=/usr/local/sbin:/usr/local/bin:/usr/bin + + cpp_flags=() + for def in "${cpp_defs[@]}"; do + cpp_flags+=( -D"${def}" ) + done + cpp_flags="EXTRA_CPP_FLAGS=${cpp_flags[*]}" + + _conf=( AUTH="${auth}" PATH="${path_user}" PATH_ROOT="${path_root}" "${cpp_flags}" ) + + make clean + make PKGNAME="${pkgname}" INSTALL_BIN=/bin "${_conf[@]}" +} + +package() { + cd "${srcdir}/cerberus-${pkgver}" + + auth=crypt # can also be set to `crypt` or `none` # pam + cpp_defs=(OWN_VCS OWN_VCSA USE_TTY_GROUP) + path_user=/usr/local/bin:/usr/bin + path_root=/usr/local/sbin:/usr/local/bin:/usr/bin + + cpp_flags=() + for def in "${cpp_defs[@]}"; do + cpp_flags+=( -D"${def}" ) + done + cpp_flags="EXTRA_CPP_FLAGS=${cpp_flags[*]}" + + _conf=( AUTH="${auth}" PATH="${path_user}" PATH_ROOT="${path_root}" "${cpp_flags}" ) + + make PKGNAME="${pkgname}" INSTALL_BIN=/bin DESTDIR="${pkgdir}" "${_conf[@]}" install + + _dir="${pkgdir}/usr/share/licenses/${pkgname}" + ln -sf -- "/usr/share/licenses/common/GPL3" "${_dir}/LICENSE" +} + diff --git a/cerberus/cerberus.install b/cerberus/cerberus.install new file mode 100644 index 0000000..ee62b29 --- /dev/null +++ b/cerberus/cerberus.install @@ -0,0 +1,20 @@ +_file="cerberus" + +infodir="usr/share/info" +file="${_file}.info" + + +post_install() { + [[ -x "usr/bin/install-info" ]] || return 0 + install-info -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null +} + +post_upgrade() { + post_install "$1" +} + +pre_remove() { + [[ -x "usr/bin/install-info" ]] || return 0 + install-info --delete -- "${infodir}/${file}" "${infodir}/dir" 2> /dev/null +} + diff --git a/dooble/upload b/cerberus/upload index 1e7a8be..1e7a8be 120000 --- a/dooble/upload +++ b/cerberus/upload |