Hello,
I've attached a patch for the PKGBUILD for opensmtpd-extras.
These are a bunch of useful extra scripts and programs useful in conjunction
with a running OpenSMTPd server.


-- 
Kind Regards,
Wael Karram.


From 3fba38ebff7d91162afdfced7a82831b8ea60534 Mon Sep 17 00:00:00 2001
From: wael <[email protected]>
Date: Thu, 1 Dec 2022 15:52:35 +0200
Subject: [PATCH] Added PKGBUILD for opensmtpd-extra

---
 pcr/opensmtpd-extras/PKGBUILD | 76 +++++++++++++++++++++++++++++++++++
 1 file changed, 76 insertions(+)
 create mode 100644 pcr/opensmtpd-extras/PKGBUILD

diff --git a/pcr/opensmtpd-extras/PKGBUILD b/pcr/opensmtpd-extras/PKGBUILD
new file mode 100644
index 000000000..254504fec
--- /dev/null
+++ b/pcr/opensmtpd-extras/PKGBUILD
@@ -0,0 +1,76 @@
+# Maintainer (AUR): Jean Lucas <[email protected]>
+# Contributor (AUR): Wilhelm Schuster <wilhelm [aT] wilhelm [.] re>
+# Maintainer (Parabola): Wael Karram <[email protected]>
+
+# Parabola changes and rationale:
+# Remove parts that depend on python2
+# Consequently some of the config flags have been commented out too.
+
+pkgname=opensmtpd-extras
+pkgver=6.7.1
+pkgrel=1
+pkgdesc='Additional queues, schedulers, and tables for OpenSMTPD'
+arch=(i686 x86_64)
+url=https://github.com/OpenSMTPD/OpenSMTPD-extras
+license=(ISC BSD BSD3 'custom:Public Domain' custom:ISC-like)
+#makedepends=(libevent python2 postgresql-libs mariadb-libs hiredis)
+makedepends=(libevent postgresql-libs mariadb-libs hiredis)
+optdepends=(
+  #'libevent: for table-python support'
+  #'python2: for table-python support'
+  'postgresql-libs: for table-postgres support'
+  'mariadb-libs: for table-mysql support'
+  'hiredis: for table-redis support'
+)
+source=(https://www.opensmtpd.org/archives/$pkgname-$pkgver.tar.gz)
+sha512sums=('0969c53a5d13816862f13b3572c0d84d34e2d36d85f83a528d70ee3f4ad5e6b2cdda256529e95a43a177e64368e4e93540d5bb2f81039808d79049234b249d91')
+
+prepare() {
+  cd $pkgname-$pkgver
+
+  # Fix config folder location
+  sed 's#/mail#/smtpd#' -i extras/tables/table-sqlite/sqlite.conf
+}
+
+build() {
+  cd $pkgname-$pkgver
+
+  ./bootstrap
+
+  # Python add-ons use Python 2
+  #sed 's#python_type="python#&2#' -i configure
+
+  ./configure \
+    --prefix=/usr \
+    --sbindir=/usr/bin \
+    --libexecdir=/usr/lib/smtpd \
+    --sysconfdir=/etc/smtpd \
+    --with-queue-null \
+    --with-queue-ram \
+    --with-queue-stub \
+    --with-scheduler-ram \
+    --with-scheduler-stub \
+    --with-table-ldap \
+    --with-table-mysql \
+    --with-table-passwd \
+    --with-table-postgres \
+    --with-table-redis \
+    --with-table-socketmap \
+    --with-table-sqlite \
+    --with-table-stub
+
+#--with-scheduler-python \
+#--with-queue-python \
+#--with-table-python \
+  make
+}
+
+check() {
+  cd $pkgname-$pkgver
+  make -k check
+}
+
+package() {
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
+}
-- 
2.38.1

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Dev mailing list
[email protected]
https://lists.parabola.nu/mailman/listinfo/dev

Reply via email to