forked from FemboyOS/fempkg_recipes
Femboyos 2 full rewrite full working CI
This commit is contained in:
38
cyrus-sasl.recipe.py
Normal file
38
cyrus-sasl.recipe.py
Normal file
@@ -0,0 +1,38 @@
|
||||
pkgname = "cyrus-sasl"
|
||||
pkgver = "2.1.28"
|
||||
source = f"https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-{pkgver}/cyrus-sasl-{pkgver}.tar.gz"
|
||||
builddir = f"/tmp/fempkg/build/{pkgname}/{pkgname}-{pkgver}"
|
||||
fembuilddir = f"/tmp/fempkg/build/{pkgname}"
|
||||
outputdir = "/home/gabry/lfs-repo/binpkg"
|
||||
manifestdir = "/home/gabry/lfs-repo/manifests"
|
||||
destdir = f"{fembuilddir}/DESTDIR"
|
||||
|
||||
deps = ["lmdb"]
|
||||
|
||||
build = [
|
||||
# Extract
|
||||
f"mkdir /tmp/fempkg/build {fembuilddir} || true && cd {fembuilddir} && tar -xvf /var/lib/fempkg/pkgs/{pkgname}-{pkgver}.tar.gz && wget https://www.linuxfromscratch.org/patches/blfs/svn/cyrus-sasl-{pkgver}-gcc15_fixes-1.patch",
|
||||
|
||||
# 64-bit build
|
||||
f"cd {builddir} && patch -Np1 -i ../cyrus-sasl-{pkgver}-gcc15_fixes-1.patch && autoreconf -fiv && sed -i '/saslint/a #include <time.h>' lib/saslutil.c && sed -i '/plugin_common/a #include <time.h>' plugins/cram.c && ./configure --prefix=/usr --sysconfdir=/etc --enable-auth-sasldb --with-dblib=lmdb --with-dbpath=/var/lib/sasl/sasldb2 --with-sphinx-build=no --with-saslauthd=/var/run/saslauthd",
|
||||
f"cd {builddir} && make -j1",
|
||||
f"cd {builddir} && make DESTDIR={destdir} install",
|
||||
f"cd {builddir} && install -d -m 755 {destdir}/usr/share/doc && install -d -m 755 {destdir}/var/lib",
|
||||
f"""
|
||||
cd {builddir} &&
|
||||
install -v -dm755 {destdir}/usr/share/doc/cyrus-sasl-{pkgver}/html &&
|
||||
install -v -m644 saslauthd/LDAP_SASLAUTHD {destdir}/usr/share/doc/cyrus-sasl-{pkgver} &&
|
||||
install -v -m644 doc/legacy/*.html {destdir}/usr/share/doc/cyrus-sasl-{pkgver}/html &&
|
||||
install -v -dm700 {destdir}/var/lib/sasl
|
||||
""",
|
||||
|
||||
f"install -v -d -m755 {destdir}/usr/share/licenses/{pkgname}/",
|
||||
f"install -v -m644 {builddir}/COPYING {destdir}/usr/share/licenses/{pkgname}/LICENSE",
|
||||
|
||||
# Make tarball + manifests
|
||||
f"mkdir -p {outputdir} && cd {destdir} && tar --transform 's|^\\.||' -I zstd -cf {outputdir}/{pkgname}-{pkgver}.tar.zst .",
|
||||
f"mkdir -p {manifestdir} && tar -tf {outputdir}/{pkgname}-{pkgver}.tar.zst | grep -v '/$' > {manifestdir}/{pkgname}.txt",
|
||||
|
||||
|
||||
f"rm -rf {builddir} {fembuilddir}"
|
||||
]
|
||||
Reference in New Issue
Block a user