From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.20884.1796156236720866935 for ; Tue, 01 Dec 2026 12:17:16 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=GUuDm6kO; spf=pass (domain: gmail.com, ip: 209.85.216.47, mailfrom: bbnpreetsingh@gmail.com) Received: by mail-pj1-f47.google.com with SMTP id 98e67ed59e1d1-3b40f4d4b5dso5301764a91.1 for ; Tue, 01 Dec 2026 12:17:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796156236; x=1796761036; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=jfuK4NwKlRpH5J4kXOmeKb7VdjeOEyvH9tucQwlAApk=; b=GUuDm6kON2ySokL4teaIHPwLR3d0Br5aFe8sCNcmCCnKIIO0VCygrt5pWsbNLSSQ6j yYOfAsbmsup/iJdrqizijxE4YnmOicZMV25LWy6J1BypHgOEmUIBvWHIO2vdpstBid+Z mMbqRzW7aGdzIcWtQwUBLpFqz+iD9LN0c43pFUfO3LAFtZhYkgfxpaOAdzKLIR2ccfVz E8f+D7Uznqu64DsKuPfnkJzmic6NFlllyo5AayaM8MQXODSBmSNOCpIAfYfZ6Lar/fuZ vx8BnEr2GF+DRoZOGEeUiRZJmC5vwo/Al1GAmshyAavrbqAdW32CHmCkYFLY2nU31JYo 7A4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796156236; x=1796761036; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=jfuK4NwKlRpH5J4kXOmeKb7VdjeOEyvH9tucQwlAApk=; b=gd4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ecwd2FifhIXTqDZP+E BsmU2/X4ByilLQOJsAa77x9pf1Wfnk0O7KztNj6E7+//eB/R44QWYVLrbBMSqSri X-Received: by 2002:a17:90b:58ef:b0:3b5:532a:eef0 with SMTP id 98e67ed59e1d1-3b5532aefe8mr13075565a91.59.1796156235808; Tue, 01 Dec 2026 12:17:15 -0800 (PST) Return-Path: Received: from localhost.localdomain ([108.180.159.198]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b41ad92c07sm60162721a91.13.2026.12.01.12.17.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 12:17:15 -0800 (PST) From: Babanpreet Singh To: openembedded-devel@lists.openembedded.org Cc: Khem Raj , Babanpreet Singh Subject: [meta-networking][PATCH] pgbouncer: add recipe Date: Tue, 1 Dec 2026 20:17:15 +0000 Message-ID: <20261201201715.7-1-bbnpreetsingh@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 01 Dec 2026 20:17:19 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/133762 Content-Type: text/plain; charset="utf-8" PgBouncer is a lightweight connection pooler for PostgreSQL. AI-Generated: Uses Claude (claude-opus-5-5) Signed-off-by: Babanpreet Singh --- .../pgbouncer/pgbouncer/pgbouncer.service | 18 ++++++++ .../pgbouncer/pgbouncer_1.26.1.bb | 42 +++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 meta-networking/recipes-support/pgbouncer/pgbouncer/pgbouncer.service create mode 100644 meta-networking/recipes-support/pgbouncer/pgbouncer_1.26.1.bb diff --git a/meta-networking/recipes-support/pgbouncer/pgbouncer/pgbouncer.service b/meta-networking/recipes-support/pgbouncer/pgbouncer/pgbouncer.service new file mode 100644 index 0000000000..212b02d7a6 --- /dev/null +++ b/meta-networking/recipes-support/pgbouncer/pgbouncer/pgbouncer.service @@ -0,0 +1,18 @@ +[Unit] +Description=Connection pooler for PostgreSQL +Documentation=https://www.pgbouncer.org/ +After=network-online.target +Wants=network-online.target + +[Service] +Type=notify +User=pgbouncer +RuntimeDirectory=pgbouncer +LogsDirectory=pgbouncer +ExecStart=/usr/bin/pgbouncer /etc/pgbouncer/pgbouncer.ini +ExecReload=/bin/kill -HUP $MAINPID +KillSignal=SIGINT +Restart=on-failure + +[Install] +WantedBy=multi-user.target diff --git a/meta-networking/recipes-support/pgbouncer/pgbouncer_1.26.1.bb b/meta-networking/recipes-support/pgbouncer/pgbouncer_1.26.1.bb new file mode 100644 index 0000000000..f01c29d3c4 --- /dev/null +++ b/meta-networking/recipes-support/pgbouncer/pgbouncer_1.26.1.bb @@ -0,0 +1,42 @@ +SUMMARY = "Lightweight connection pooler for PostgreSQL" +HOMEPAGE = "https://www.pgbouncer.org/" +BUGTRACKER = "https://github.com/pgbouncer/pgbouncer/issues" +LICENSE = "ISC" +LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=d5f4369a96e12a98e8695033381d6c28" + +SRC_URI = "https://www.pgbouncer.org/downloads/files/${PV}/${BP}.tar.gz \ + file://pgbouncer.service \ + " +SRC_URI[sha256sum] = "00886a2994b4844cd37110970df777772cfc42a74c400522c82fba509a3f42d9" + +UPSTREAM_CHECK_URI = "https://www.pgbouncer.org/downloads/" +UPSTREAM_CHECK_REGEX = "pgbouncer-(?P\d+(\.\d+)+)\.tar\.gz" + +DEPENDS = "libevent" + +inherit autotools-brokensep pkgconfig systemd useradd + +EXTRA_AUTORECONF += "-I ${S}/lib/m4" + +PACKAGECONFIG ??= "openssl cares ${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd', d)}" +PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl" +PACKAGECONFIG[cares] = "--with-cares,--without-cares,c-ares" +PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam" +PACKAGECONFIG[ldap] = "--with-ldap,--without-ldap,openldap" +PACKAGECONFIG[systemd] = "--with-systemd,--without-systemd,systemd" + +EXTRA_OEMAKE += "dist_man_MANS=" + +do_install:append() { + install -d ${D}${sysconfdir}/pgbouncer + install -m 0644 ${S}/etc/pgbouncer.ini ${D}${sysconfdir}/pgbouncer/ + install -D -m 0644 ${UNPACKDIR}/pgbouncer.service ${D}${systemd_system_unitdir}/pgbouncer.service +} + +USERADD_PACKAGES = "${PN}" +USERADD_PARAM:${PN} = "--system --home-dir /nonexistent --no-create-home --shell /sbin/nologin --user-group pgbouncer" + +SYSTEMD_SERVICE:${PN} = "pgbouncer.service" +SYSTEMD_AUTO_ENABLE:${PN} = "disable" + +CONFFILES:${PN} = "${sysconfdir}/pgbouncer/pgbouncer.ini" -- 2.43.0