commit e323b64499423d17f6d040e3ce5277aea37fde0d
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Wed, 13 May 2026 17:04:41 +0530
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Wed, 13 May 2026 17:04:41 +0530
Initial Commit
20 files changed, 300 insertions(+), 0 deletions(-)
A
|
75
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
diff --git a/README.md b/README.md @@ -0,0 +1,2 @@ +# foundationpkgs +Perhaps rename the project name?
diff --git a/any/jdtls/APKBUILD b/any/jdtls/APKBUILD @@ -0,0 +1,21 @@ + +# Contributor: Bharatvaj Hemanth <bharatvaj@yahoo.com> +# Maintainer: Bharatvaj Hemanth <bharatvaj@yahoo.com> +pkgname="eclipse-jdtls" +pkgver=1.54.0 +pkgrel=0 +pkgdesc=" Java language server" +url="https://github.com/eclipse-jdtls/eclipse.jdt.ls" +arch="all" +license="EPL-2.0" +depends="jre-21" +depends_dev= +makedepends="$depends_dev" +subpackages="$pkgname-dev $pkgname-doc" +source="https://github.com/eclipse-jdtls/eclipse.jdt.ls/archive/refs/tags/v${pkgver}.tar.gz" + +builddir="$srcdir"/$pkgname-$pkgver + +build() { + +}
diff --git a/noarch/asapien-lighttpd-openrc/APKBUILD b/noarch/asapien-lighttpd-openrc/APKBUILD @@ -0,0 +1,25 @@ +# Contributor: Bharatvaj Hemanth <bharatvaj@nonplanar.org> +# Maintainer: Bharatvaj Hemanth <bharatvaj@nonplanar.org> +pkgname=asapien-lighttpd-openrc +pkgver=0.1 +pkgdesc="ASAPIEN lighttpd base" +pkgrel=0 +url="https://asapien.com" +arch="noarch" +license="MIT" +depends="lighttpd" +options="!check !build" + +package() { + mkdir -p "$pkgdir/etc/init.d" + mkdir -p "$pkgdir/etc/conf.d" + mkdir -p "$pkgdir/etc/lighttpd/macro" + + install -m0755 "osvars.conf" "$pkgdir/etc/lighttpd/osvars.conf" + install -m0755 "common.conf" "$pkgdir/etc/lighttpd/common.conf" + + install -m755 macro/* "$pkgdir/etc/lighttpd/macro/" + install -m755 init.d/lighttpd-proxy "$pkgdir/etc/init.d/" + install -m755 conf.d/lighttpd-proxy "$pkgdir/etc/conf.d/" +} +
diff --git a/noarch/asapien-lighttpd-openrc/common.conf b/noarch/asapien-lighttpd-openrc/common.conf @@ -0,0 +1,7 @@ +var.lighttpddir = var.etcdir + "lighttpd/" +var.certroot = var.lighttpddir + "ssl/" +var.macrodir = var.lighttpddir + "macro/" +var.dbdir = "/var/db/lighttpd/" +var.sitedir = var.srvdir + "www/" +var.filesdir = var.srvdir + "files/" +var.logdir = var.vardir + "/log/lighttpd/"
diff --git a/noarch/asapien-lighttpd-openrc/conf.d/lighttpd-proxy b/noarch/asapien-lighttpd-openrc/conf.d/lighttpd-proxy @@ -0,0 +1,12 @@ +# /etc/conf.d/lighttpd + +# Location of a shell used by the 'include_shell' directive +# in the lighttpd's configuration file +#export SHELL="/bin/bash" + +# Location of the lighttpd configuration file +LIGHTTPD_CONF="/etc/lighttpd/proxy.conf" + +# Location of the lighttpd pid file +LIGHTTPD_PID="/run/lighttpd-proxy.pid" +
diff --git a/noarch/asapien-lighttpd-openrc/init.d/lighttpd-proxy b/noarch/asapien-lighttpd-openrc/init.d/lighttpd-proxy @@ -0,0 +1,75 @@ +#!/sbin/openrc-run +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/files/lighttpd.initd,v 1.21 2012/01/08 20:45:46 hwoarang Exp $ + +extra_started_commands="reload graceful" +required_files=$LIGHTTPD_CONF + +depend() { + need net + use mysql logger spawn-fcgi ldap slapd netmount dns + after firewall + after famd + after sshd +} + +checkconfig() { + if [ ! -f "${LIGHTTPD_CONF}" ] ; then + ewarn "${LIGHTTPD_CONF} does not exist." + return 1 + fi + + if [ -z "${LIGHTTPD_PID}" ] ; then + ewarn "server.pid-file variable in ${LIGHTTPD_CONF}" + ewarn "is not set. Falling back to lighttpd-proxy.pid" + LIGHTTPD_PID="/run/lighttpd-proxy.pid" + fi + /usr/local/sbin/lighttpd -tt -f ${LIGHTTPD_CONF} +} + +start() { + checkconfig || return 1 + checkpath -d -q -m 0750 -o lighttpd:lighttpd /run/lighttpd/ + + ebegin "Starting lighttpd" + start-stop-daemon --start --quiet --exec /usr/local/sbin/lighttpd \ + --pidfile "${LIGHTTPD_PID}" -- -f "${LIGHTTPD_CONF}" + eend $? +} + +stop() { + local rv=0 + ebegin "Stopping lighttpd" + start-stop-daemon --stop --quiet --pidfile "${LIGHTTPD_PID}" + eend $? +} + +reload() { + if ! service_started "${SVCNAME}" ; then + eerror "${SVCNAME} isn't running" + return 1 + fi + checkconfig || return 1 + + ebegin "Re-opening lighttpd log files" + start-stop-daemon --quiet --pidfile "${LIGHTTPD_PID}" \ + --signal HUP + eend $? +} + +graceful() { + if ! service_started "${SVCNAME}" ; then + eerror "${SVCNAME} isn't running" + return 1 + fi + checkconfig || return 1 + + ebegin "Gracefully stopping lighttpd" + start-stop-daemon --quiet --pidfile "${LIGHTTPD_PID}" \ + --signal INT + if eend $? ; then + rm -f "${LIGHTTPD_PID}" + start + fi +}
diff --git a/noarch/asapien-lighttpd-openrc/macro/enable-accesslog.conf b/noarch/asapien-lighttpd-openrc/macro/enable-accesslog.conf @@ -0,0 +1 @@ +accesslog.filename = var.logdir + var.host + "_access.log"
diff --git a/noarch/asapien-lighttpd-openrc/macro/enable-errorlog.conf b/noarch/asapien-lighttpd-openrc/macro/enable-errorlog.conf @@ -0,0 +1 @@ +server.errorlog = var.logdir + var.host + "_error.log"
diff --git a/noarch/asapien-lighttpd-openrc/macro/enable-https-redirect.conf b/noarch/asapien-lighttpd-openrc/macro/enable-https-redirect.conf @@ -0,0 +1,5 @@ +$SERVER["socket"] == ":80" { + $HTTP["host"] =~ "(.*)" { + url.redirect = ( "^/(.*)" => "https://%1/$1" ) + } +}
diff --git a/noarch/asapien-lighttpd-openrc/macro/enable-ldap-auth.conf b/noarch/asapien-lighttpd-openrc/macro/enable-ldap-auth.conf @@ -0,0 +1,7 @@ +auth.backend = "ldap" +auth.backend.ldap.hostname = "localhost" +auth.backend.ldap.filter = "(&(uid=$)(!(pwdAccountLockedTime=000001010000Z)))" + +auth.backend.ldap.base-dn = var.ldap.base-dn +auth.backend.ldap.bind-dn = var.ldap.bind-dn +auth.backend.ldap.bind-pw = var.ldap.bind-pw
diff --git a/noarch/asapien-lighttpd-openrc/macro/enable-ssl.conf b/noarch/asapien-lighttpd-openrc/macro/enable-ssl.conf @@ -0,0 +1,5 @@ +$SERVER["socket"] == ":443" { + ssl.engine = "enable" + ssl.privkey = var.certroot + var.host + "/privkey.pem" + ssl.pemfile = var.certroot + var.host + "/fullchain.pem" +}
diff --git a/noarch/asapien-lighttpd-openrc/macro/setup-secure-proxy.conf b/noarch/asapien-lighttpd-openrc/macro/setup-secure-proxy.conf @@ -0,0 +1,2 @@ +include var.macrodir + "enable-accesslog.conf" +include var.macrodir + "enable-ssl.conf"
diff --git a/noarch/asapien-lighttpd-openrc/macro/setup-vhost.conf b/noarch/asapien-lighttpd-openrc/macro/setup-vhost.conf @@ -0,0 +1,3 @@ +server.document-root = var.sitedir + var.host + +include var.macrodir + "enable-errorlog.conf"
diff --git a/noarch/asapien-lighttpd-openrc/osvars.conf b/noarch/asapien-lighttpd-openrc/osvars.conf @@ -0,0 +1,4 @@ +var.etcdir = "/etc/" +var.srvdir = "/srv/" +var.rundir = "/run/" +var.vardir = "/var/"
diff --git a/noarch/switchver/APKBUILD b/noarch/switchver/APKBUILD @@ -0,0 +1,34 @@ +# Contributor: Bharatvaj Hemanth <bharatvaj@nonplanar.org> +# Maintainer: Bharatvaj Hemanth <bharatvaj@nonplanar.org> +pkgname=switchver-hg +pkgver=0 +pkgdesc="A one-time password login package" +pkgrel=0 +url="https://www.cl.cam.ac.uk/~mgk25/otpw.html" +arch="noarch" +license="GPL-2-or-later" +source="https://hg.sr.ht/~redradishtech/versioned_directories/archive/tip.tar.gz" +makedepends="mercurial" +depends="bash" +options="!build" + +pkgver() { + # TODO Use mercurial versioning + echo 0.1 +} + +check() { + cd "$srcdir/versioned_directories-tip/test" + bash "test.sh" +} + +package() { + cd "$srcdir/versioned_directories-tip" + + mkdir -p "$pkgdir/usr/bin" + install -m0755 "switchver" "$pkgdir/usr/bin/switchver" +} + +sha512sums=" +5b6887865e4951ad8caccdf60b888de169135c9f410c7bda2a48ebe3fd0176b1ef6f0b46d889bfe675c92561b9eb9f8c001c597e1234c784cc18b4b6453ade40 tip.tar.gz +"
diff --git a/x86_64-linux/otpw/00-Makefile.patch b/x86_64-linux/otpw/00-Makefile.patch @@ -0,0 +1,36 @@ +diff --git a/Makefile b/Makefile +index 9c82d86..5deb236 100644 +--- a/Makefile ++++ b/Makefile +@@ -35,8 +35,8 @@ distribution: + + release: + git diff --exit-code v$(VERSION) -- otpw.html +- rsync -t otpw-$(VERSION).tar.gz $(HOME)/public_html/download/ +- rsync -t otpw.html $(HOME)/public_html/ ++ install otpw-$(VERSION).tar.gz -t $(HOME)/public_html/download/ ++ install otpw.html -t $(HOME)/public_html/ + + #PAMLIB=/lib/security + PAMLIB=/lib/x86_64-linux-gnu/security +@@ -44,16 +44,16 @@ PAMLIB=/lib/x86_64-linux-gnu/security + install: install-pam install-gen + + install-pam: pam_otpw.so pam_otpw.8.gz +- rsync -t pam_otpw.so $(PAMLIB)/ +- rsync -t pam_otpw.8.gz /usr/share/man/man8/ ++ install pam_otpw.so -t $(PAMLIB)/ ++ install pam_otpw.8.gz -t /usr/share/man/man8/ + perl -i.bak -pe 's/^(\@include common-auth)$$/\# $$1\nauth required pam_otpw.so/' /etc/pam.d/sshd + perl -i.bak -pe 's/^(ChallengeResponseAuthentication\s+)no$$/$$1yes/' \ + /etc/ssh/sshd_config + killall -SIGHUP sshd + + install-gen: otpw-gen otpw-gen.1.gz +- rsync -t otpw-gen /usr/bin/ +- rsync -t otpw-gen.1.gz /usr/share/man/man1/ ++ install otpw-gen -t /usr/bin/ ++ install otpw-gen.1.gz -t /usr/share/man/man1/ + -getent passwd otpw && \ + chown otpw /usr/bin/otpw-gen && chmod u+s /usr/bin/otpw-gen +
diff --git a/x86_64-linux/otpw/APKBUILD b/x86_64-linux/otpw/APKBUILD @@ -0,0 +1,32 @@ +# Contributor: Bharatvaj Hemanth <bharatvaj@nonplanar.org> +# Maintainer: Bharatvaj Hemanth <bharatvaj@nonplanar.org> +pkgname=otpw +pkgver=1.5 +pkgdesc="A one-time password login package" +pkgrel=0 +url="https://www.cl.cam.ac.uk/~mgk25/otpw.html" +arch="all" +license="GPL-2-or-later" +makedepends="rsync" +source=" +https://www.cl.cam.ac.uk/~mgk25/download/otpw-1.5.tar.gz +00-Makefile.patch +" +depends="linux-pam-dev" +options="!check" + +build() { + cd "$builddir" + make CFLAGS="$CFLAGS -fPIC" +} + +package() { + cd "$builddir" + install -Dm0755 "pam_otpw.so" "$pkgdir/usr/lib/security/pam_otpw.so" + install -Dm0755 "otpw-gen" "$pkgdir/usr/bin/otpw-gen" +} + +sha512sums=" +bf547359ef28acac8e41eb4a83f1a4e28d6855bfb62cff75ff90169df71144e41f7ac3846bdfae8db6eec2ab1bf51c0c4e9b8016cbc3f99fc76697c59119c504 otpw-1.5.tar.gz +7b0cc0a809a74635de2398a3c1cbcaf19b915bdcc31d86e8f3faf7332ba7e420aae1fdd21ff06720e4940d449741ce2d2534bed5d3782efaf6c03fac2b8f8022 00-Makefile.patch +"
diff --git a/x86_64-linux/td/APKBUILD b/x86_64-linux/td/APKBUILD @@ -0,0 +1,28 @@ +# Contributor: Bharatvaj Hemanth <bharatvaj@nonplanar.org> +# Maintainer: +pkgname=libtd +pkgver=20250928 +pkgdesc="Common library procedures for CM_TOOLS utilities and others." +pkgrel=0 +url="https://invisible-island.net/ded/ded.html" +arch="all" +license="MIT" +makedepends="" +source="https://invisible-island.net/archives/ded/td_lib.tar.gz" +builddir="$srcdir/" +options="!check" + +build() { + cd td_lib-$pkgver + ./configure --prefix="$pkgdir" + make +} + +package() { + cd td_lib-$pkgver + make install +} + +sha512sums=" +2c9c0cc990a5b58a955b7ad27d7ffac38fc8300493949f73f60efd55d9311e7af4ab68ca81a6e6acb7192aa100a60a7d01d3c100e20b697318c55c445e344d3a td_lib.tar.gz +"
: nply/foundationpkgs