[GF-Users] postfix-tlspol rpm
Peter
peter at pajamian.dhs.org
Sun Jul 27 00:49:52 MST 2025
Perhaps this will help:
https://gitlab.com/fedora/sigs/go/go-rpm-macros/-/tree/3.6.0/templates/rpm?ref_type=tags
That is various spec file templates with commented docs specific to the
version of go-rom-macros in EL9.
Peter
On 26/07/25 22:26, Michael Webb wrote:
> Hi Peter
>
> Thanks for the guidance. I have made and tested a spec file that builds using mock for centos-stream+epel-9-x86_64.cfg and I have installed the output rpm in both my Rocky 9.6 production servers. BUT I HAVE A SMALL PROBLEM (see below) and it is not quite ready for release.
>
> spec
> https://integrilog.com/adhj5jkuuk2sfsf0/postfix-tlspol/postfix-tlspol-1.8.12.spec.txt
>
> sample srpm & rpm
> https://www.integrilog.com/adhj5jkuuk2sfsf0/postfix-tlspol/
>
> The file builds directly from github source and modifies the IP address inside the config.yaml file (assumes dns service is installed on the host)
>
> My build sequence was
>
> rpmbuild -bs /root/rpmbuild/SPECS/postfix-tlspol.spec
> mock -r centos-stream+epel-9-x86_64 --rebuild /root/rpmbuild/SRPMS/postfix-tlspol-1.8.12-1.el9.src.rpm
>
>
> After enabling and restarting the service I was able to execute a successful query.
>
> /usr/bin/postfix-tlspol -config /etc/postfix-tlspol/config.yaml -query integrilog.com
>
> The following entries are also recommended in /etc/named.conf
>
> min-cache-ttl 10;
> max-cache-ttl 240;
>
> PROBLEM
> The %gobuild is not picking up the version so when I run "systemctl status postfix-tlspol.service", the service reports "vundefined"
>
> Jul 26 03:56:41 mx01.integrilog.com postfix-tlspol[924717]: postfix-tlspol (c) 2024-2025 Zuplu - vundefined
>
> I think there is supposed to be arguments passed like
>
> "%gobuild -ldflags="-d -extldflags='-static' -s -X 'main.Version=1.8.12'"
> Or %global VERSION 1.8.12
>
> but I haven't been able to figure it out yet.
>
> Regards
> Mike
>
> _______________________________________________
> users mailing list
> users at lists.ghettoforge.net
> http://lists.ghettoforge.net/mailman/listinfo/users
More information about the users
mailing list