diff --git a/src/nghttp2/.gitignore b/src/nghttp2/.gitignore new file mode 100644 index 0000000..8b56c9f --- /dev/null +++ b/src/nghttp2/.gitignore @@ -0,0 +1,3 @@ +.cache/ +dist/ +root/ diff --git a/src/nghttp2/changes.md b/src/nghttp2/changes.md new file mode 100644 index 0000000..163620c --- /dev/null +++ b/src/nghttp2/changes.md @@ -0,0 +1,2 @@ +# 1.62.1 +First version diff --git a/src/nghttp2/pkg.sh b/src/nghttp2/pkg.sh new file mode 100644 index 0000000..764ccc4 --- /dev/null +++ b/src/nghttp2/pkg.sh @@ -0,0 +1,27 @@ +# general info +NAME="nghttp2" +DESC="HTTP/2 C Library and tools" +VERSION="1.62.1" + +# required files +FILES=("https://github.com/nghttp2/nghttp2/archive/refs/tags/v${VERSION}.tar.gz") +HASHES=("73c8af772dd2b30cedc114d37291cf1485b0a7ce11833595fc2aec7b3ce3ba5c") + +# install and build depends +DEPENDS=("glibc" "libxml2") +BUILD=() + +build(){ + tar xf "v${VERSION}.tar.gz" + cd "${NAME}-${VERSION}" + + autoreconf -i + ./configure --prefix=/usr \ + --disable-static \ + --enable-lib-only \ + --docdir="/usr/share/doc/nghttp2-${VERSION}" + make + make DESTDIR="${ROOTDIR}" install + + cd .. && rm -r "${NAME}-${VERSION}" +} diff --git a/src/ninja/.gitignore b/src/ninja/.gitignore new file mode 100644 index 0000000..8b56c9f --- /dev/null +++ b/src/ninja/.gitignore @@ -0,0 +1,3 @@ +.cache/ +dist/ +root/ diff --git a/src/ninja/changes.md b/src/ninja/changes.md new file mode 100644 index 0000000..ee9996e --- /dev/null +++ b/src/ninja/changes.md @@ -0,0 +1,2 @@ +# 1.12.1 +First version diff --git a/src/ninja/pkg.sh b/src/ninja/pkg.sh new file mode 100644 index 0000000..ae3784d --- /dev/null +++ b/src/ninja/pkg.sh @@ -0,0 +1,26 @@ +# general info +NAME="ninja" +DESC="Small build system with a focus on speed" +VERSION="1.12.1" + +# required files +FILES=("https://github.com/ninja-build/ninja/archive/refs/tags/v${VERSION}.tar.gz") +HASHES=("821bdff48a3f683bc4bb3b6f0b5fe7b2d647cf65d52aeb63328c91a6c6df285a") + +# install and build depends +DEPENDS=("gcc-libs" "python3") +BUILD=() + +build(){ + tar xf "v${VERSION}.tar.gz" + cd "${NAME}-${VERSION}" + + python3 configure.py --bootstrap + + install -dm755 "${ROOTDIR}/usr/bin" + install -vm755 ninja "${ROOTDIR}/usr/bin/" + install -vDm644 misc/bash-completion "${ROOTDIR}/usr/share/bash-completion/completions/ninja" + install -vDm644 misc/zsh-completion "${ROOTDIR}/usr/share/zsh/site-functions/_ninja" + + cd .. && rm -r "${NAME}-${VERSION}" +} diff --git a/src/npth/.gitignore b/src/npth/.gitignore new file mode 100644 index 0000000..8b56c9f --- /dev/null +++ b/src/npth/.gitignore @@ -0,0 +1,3 @@ +.cache/ +dist/ +root/ diff --git a/src/npth/changes.md b/src/npth/changes.md new file mode 100644 index 0000000..e2d31d2 --- /dev/null +++ b/src/npth/changes.md @@ -0,0 +1,2 @@ +# 1.7 +First version diff --git a/src/npth/pkg.sh b/src/npth/pkg.sh new file mode 100644 index 0000000..b2e9b74 --- /dev/null +++ b/src/npth/pkg.sh @@ -0,0 +1,23 @@ +# general info +NAME="npth" +DESC="New GNU portable threads library" +VERSION="1.7" + +# required files +FILES=("https://www.gnupg.org/ftp/gcrypt/npth/npth-${VERSION}.tar.bz2") +HASHES=("8589f56937b75ce33b28d312fccbf302b3b71ec3f3945fde6aaa74027914ad05") + +# install and build depends +DEPENDS=("bash" "glibc") +BUILD=() + +build(){ + tar xf "${NAME}-${VERSION}.tar.bz2" + cd "${NAME}-${VERSION}" + + ./configure --prefix=/usr + make + make DESTDIR="${ROOTDIR}" install + + cd .. && rm -r "${NAME}-${VERSION}" +} diff --git a/src/openldap/.gitignore b/src/openldap/.gitignore new file mode 100644 index 0000000..8b56c9f --- /dev/null +++ b/src/openldap/.gitignore @@ -0,0 +1,3 @@ +.cache/ +dist/ +root/ diff --git a/src/openldap/changes.md b/src/openldap/changes.md new file mode 100644 index 0000000..38c2bc6 --- /dev/null +++ b/src/openldap/changes.md @@ -0,0 +1,2 @@ +# 2.6.8 +First version diff --git a/src/openldap/openldap-2.6.8-consolidated-1.patch b/src/openldap/openldap-2.6.8-consolidated-1.patch new file mode 100644 index 0000000..62dea26 --- /dev/null +++ b/src/openldap/openldap-2.6.8-consolidated-1.patch @@ -0,0 +1,175 @@ +Submitted by: Xi Ruoyao +Date: 2024-01-30 +Initial Package Version: 2.6.7 +Upstream Status: BLFS Specific +Origin: Armin K. and Debian. + Rediffed multiple times by various editors. + For 2.6.7, manually edited to remove the bogus + ".orig" file creation, and change + %LOCALSTATEDIR%/run to /run because /var/run has + been deprecated. + +diff -Naurp openldap-2.6.2.orig/doc/man/man5/slapd.conf.5 openldap-2.6.2/doc/man/man5/slapd.conf.5 +--- openldap-2.6.2.orig/doc/man/man5/slapd.conf.5 2022-05-04 16:55:23.000000000 +0200 ++++ openldap-2.6.2/doc/man/man5/slapd.conf.5 2022-05-05 12:05:53.309727745 +0200 +@@ -2122,7 +2122,7 @@ suffix "dc=our\-domain,dc=com" + # The database directory MUST exist prior to + # running slapd AND should only be accessible + # by the slapd/tools. Mode 0700 recommended. +-directory LOCALSTATEDIR/openldap\-data ++directory LOCALSTATEDIR/lib/openldap + # Indices to maintain + index objectClass eq + index cn,sn,mail pres,eq,approx,sub +diff -Naurp openldap-2.6.2.orig/doc/man/man5/slapd-config.5 openldap-2.6.2/doc/man/man5/slapd-config.5 +--- openldap-2.6.2.orig/doc/man/man5/slapd-config.5 2022-05-04 16:55:23.000000000 +0200 ++++ openldap-2.6.2/doc/man/man5/slapd-config.5 2022-05-05 12:05:53.312727754 +0200 +@@ -2233,7 +2233,7 @@ olcSuffix: "dc=our\-domain,dc=com" + # The database directory MUST exist prior to + # running slapd AND should only be accessible + # by the slapd/tools. Mode 0700 recommended. +-olcDbDirectory: LOCALSTATEDIR/openldap\-data ++olcDbDirectory: LOCALSTATEDIR/lib/openldap + # Indices to maintain + olcDbIndex: objectClass eq + olcDbIndex: cn,sn,mail pres,eq,approx,sub + +diff -Naurp openldap-2.6.2.orig/include/ldap_defaults.h openldap-2.6.2/include/ldap_defaults.h +--- openldap-2.6.2.orig/include/ldap_defaults.h 2022-05-04 16:55:23.000000000 +0200 ++++ openldap-2.6.2/include/ldap_defaults.h 2022-05-05 12:07:08.783961875 +0200 +@@ -40,7 +40,8 @@ + + /* default ldapi:// socket */ + #ifndef LDAPI_SOCK +-#define LDAPI_SOCK LDAP_RUNDIR LDAP_DIRSEP "run" LDAP_DIRSEP "ldapi" ++#define LDAPI_SOCK "/run" LDAP_DIRSEP "openldap" LDAP_DIRSEP "ldapi" ++ + #endif + + /* +@@ -54,7 +55,8 @@ + #define SLAPD_DEFAULT_CONFIGDIR LDAP_SYSCONFDIR LDAP_DIRSEP "slapd.d" + #endif + #ifndef SLAPD_DEFAULT_DB_DIR +-#define SLAPD_DEFAULT_DB_DIR LDAP_RUNDIR LDAP_DIRSEP "openldap-data" ++#define SLAPD_DEFAULT_DB_DIR LDAP_RUNDIR LDAP_DIRSEP "lib" LDAP_DIRSEP "openldap" ++ + #endif + #define SLAPD_DEFAULT_DB_MODE 0600 + /* default max deref depth for aliases */ +diff -Naurp openldap-2.6.2.orig/libraries/liblber/Makefile.in openldap-2.6.2/libraries/liblber/Makefile.in +--- openldap-2.6.2.orig/libraries/liblber/Makefile.in 2022-05-04 16:55:23.000000000 +0200 ++++ openldap-2.6.2/libraries/liblber/Makefile.in 2022-05-05 12:05:53.313727757 +0200 +@@ -51,6 +51,6 @@ idtest: $(XLIBS) idtest.o + + install-local: FORCE + -$(MKDIR) $(DESTDIR)$(libdir) +- $(LTINSTALL) $(INSTALLFLAGS) -m 644 $(LIBRARY) $(DESTDIR)$(libdir) ++ $(LTINSTALL) $(INSTALLFLAGS) -m 755 $(LIBRARY) $(DESTDIR)$(libdir) + $(LTFINISH) $(DESTDIR)$(libdir) + +diff -Naurp openldap-2.6.2.orig/libraries/libldap/Makefile.in openldap-2.6.2/libraries/libldap/Makefile.in +--- openldap-2.6.2.orig/libraries/libldap/Makefile.in 2022-05-04 16:55:23.000000000 +0200 ++++ openldap-2.6.2/libraries/libldap/Makefile.in 2022-05-05 12:05:53.327727801 +0200 +@@ -82,7 +82,7 @@ CFFILES=ldap.conf + + install-local: $(CFFILES) FORCE + -$(MKDIR) $(DESTDIR)$(libdir) +- $(LTINSTALL) $(INSTALLFLAGS) -m 644 $(LIBRARY) $(DESTDIR)$(libdir) ++ $(LTINSTALL) $(INSTALLFLAGS) -m 755 $(LIBRARY) $(DESTDIR)$(libdir) + $(LTFINISH) $(DESTDIR)$(libdir) + -$(MKDIR) $(DESTDIR)$(sysconfdir) + @for i in $(CFFILES); do \ +diff -Naurp openldap-2.6.2.orig/servers/slapd/Makefile.in openldap-2.6.2/servers/slapd/Makefile.in +--- openldap-2.6.2.orig/servers/slapd/Makefile.in 2022-05-04 16:55:23.000000000 +0200 ++++ openldap-2.6.2/servers/slapd/Makefile.in 2022-05-05 12:05:53.329727807 +0200 +@@ -374,9 +374,10 @@ install-local-srv: install-slapd install + + install-slapd: FORCE + -$(MKDIR) $(DESTDIR)$(libexecdir) ++ -$(MKDIR) $(DESTDIR)$(sbindir) + -$(MKDIR) $(DESTDIR)$(localstatedir)/run + $(LTINSTALL) $(INSTALLFLAGS) $(STRIP_OPTS) -m 755 \ +- slapd$(EXEEXT) $(DESTDIR)$(libexecdir) ++ slapd$(EXEEXT) $(DESTDIR)$(sbindir) + @for i in $(SUBDIRS); do \ + if test -d $$i && test -f $$i/Makefile ; then \ + echo; echo " cd $$i && $(MAKE) $(MFLAGS) install"; \ +@@ -452,9 +453,9 @@ install-conf: FORCE + + install-db-config: FORCE + @-$(MKDIR) $(DESTDIR)$(localstatedir) $(DESTDIR)$(sysconfdir) +- @-$(INSTALL) -m 700 -d $(DESTDIR)$(localstatedir)/openldap-data ++ @-$(INSTALL) -m 700 -d $(DESTDIR)$(localstatedir)/lib/openldap + $(INSTALL) $(INSTALLFLAGS) -m 600 $(srcdir)/DB_CONFIG \ +- $(DESTDIR)$(localstatedir)/openldap-data/DB_CONFIG.example ++ $(DESTDIR)$(localstatedir)/lib/openldap/DB_CONFIG.example + $(INSTALL) $(INSTALLFLAGS) -m 600 $(srcdir)/DB_CONFIG \ + $(DESTDIR)$(sysconfdir)/DB_CONFIG.example + +@@ -462,6 +463,6 @@ install-tools: FORCE + -$(MKDIR) $(DESTDIR)$(sbindir) + for i in $(SLAPTOOLS); do \ + $(RM) $(DESTDIR)$(sbindir)/$$i$(EXEEXT); \ +- $(LN_S) -f $(DESTDIR)$(libexecdir)/slapd$(EXEEXT) $(DESTDIR)$(sbindir)/$$i$(EXEEXT); \ ++ $(LN_S) -f $(DESTDIR)$(sbindir)/slapd$(EXEEXT) $(DESTDIR)$(sbindir)/$$i$(EXEEXT); \ + done + +diff -Naurp openldap-2.6.2.orig/servers/slapd/slapd.conf openldap-2.6.2/servers/slapd/slapd.conf +--- openldap-2.6.2.orig/servers/slapd/slapd.conf 2022-05-04 16:55:23.000000000 +0200 ++++ openldap-2.6.2/servers/slapd/slapd.conf 2022-05-05 12:05:53.331727813 +0200 +@@ -10,8 +10,9 @@ include %SYSCONFDIR%/schema/core.schema + # service AND an understanding of referrals. + #referral ldap://root.openldap.org + +-pidfile %LOCALSTATEDIR%/run/slapd.pid +-argsfile %LOCALSTATEDIR%/run/slapd.args ++pidfile /run/openldap/slapd.pid ++argsfile /run/openldap/slapd.args ++ + + # Load dynamic backend modules: + modulepath %MODULEDIR% +@@ -69,7 +70,7 @@ rootpw secret + # The database directory MUST exist prior to running slapd AND + # should only be accessible by the slapd and slap tools. + # Mode 700 recommended. +-directory %LOCALSTATEDIR%/openldap-data ++directory %LOCALSTATEDIR%/lib/openldap + # Indices to maintain + index objectClass eq + +diff -Naurp openldap-2.6.2.orig/servers/slapd/slapd.ldif openldap-2.6.2/servers/slapd/slapd.ldif +--- openldap-2.6.2.orig/servers/slapd/slapd.ldif 2022-05-04 16:55:23.000000000 +0200 ++++ openldap-2.6.2/servers/slapd/slapd.ldif 2022-05-05 12:05:53.332727816 +0200 +@@ -9,8 +9,8 @@ cn: config + # + # Define global ACLs to disable default read access. + # +-olcArgsFile: %LOCALSTATEDIR%/run/slapd.args +-olcPidFile: %LOCALSTATEDIR%/run/slapd.pid ++olcArgsFile: /run/openldap/slapd.args ++olcPidFile: /run/openldap/slapd.pid + # + # Do not enable referrals until AFTER you have a working directory + # service AND an understanding of referrals. +@@ -88,7 +88,7 @@ olcRootPW: secret + # The database directory MUST exist prior to running slapd AND + # should only be accessible by the slapd and slap tools. + # Mode 700 recommended. +-olcDbDirectory: %LOCALSTATEDIR%/openldap-data ++olcDbDirectory: %LOCALSTATEDIR%/lib/openldap + # Indices to maintain + olcDbIndex: objectClass eq + +diff -Naurp openldap-2.6.2.orig/servers/slapd/slapi/Makefile.in openldap-2.6.2/servers/slapd/slapi/Makefile.in +--- openldap-2.6.2.orig/servers/slapd/slapi/Makefile.in 2022-05-04 16:55:23.000000000 +0200 ++++ openldap-2.6.2/servers/slapd/slapi/Makefile.in 2022-05-05 12:05:53.333727819 +0200 +@@ -46,6 +46,6 @@ BUILD_MOD = @BUILD_SLAPI@ + install-local: FORCE + if test "$(BUILD_MOD)" = "yes"; then \ + $(MKDIR) $(DESTDIR)$(libdir); \ +- $(LTINSTALL) $(INSTALLFLAGS) -m 644 $(LIBRARY) $(DESTDIR)$(libdir); \ ++ $(LTINSTALL) $(INSTALLFLAGS) -m 755 $(LIBRARY) $(DESTDIR)$(libdir); \ + fi + diff --git a/src/openldap/pkg.sh b/src/openldap/pkg.sh new file mode 100644 index 0000000..4411168 --- /dev/null +++ b/src/openldap/pkg.sh @@ -0,0 +1,42 @@ +# general info +NAME="openldap" +DESC="Community developed LDAP software" +VERSION="2.6.8" + +# required files +FILES=( + "https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-${VERSION}.tgz" + "openldap-${VERSION}-consolidated-1.patch" +) +HASHES=( + "48969323e94e3be3b03c6a132942dcba7ef8d545f2ad35401709019f696c3c4e" + "ee96840f2235bdd810e41e8cbc2faf4d46b83c0c15be937701c147b099d0232d" +) + +# install and build depends +DEPENDS=( + "unixodbc" "systemd" "perl" + "libtool" "openssl" +) +BUILD=() + +build(){ + tar xf "${NAME}-${VERSION}.tgz" + cd "${NAME}-${VERSION}" + + patch -Np1 -i "../openldap-${VERSION}-consolidated-1.patch" + autoconf + + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --disable-static \ + --enable-dynamic \ + --disable-debug \ + --disable-slapd + + make depend + make + make DESTDIR="${ROOTDIR}" install + + cd .. && rm -r "${NAME}-${VERSION}" +} diff --git a/src/p11-kit/.gitignore b/src/p11-kit/.gitignore new file mode 100644 index 0000000..8b56c9f --- /dev/null +++ b/src/p11-kit/.gitignore @@ -0,0 +1,3 @@ +.cache/ +dist/ +root/ diff --git a/src/p11-kit/changes.md b/src/p11-kit/changes.md new file mode 100644 index 0000000..b680e3e --- /dev/null +++ b/src/p11-kit/changes.md @@ -0,0 +1,2 @@ +# 0.25.5 +First version diff --git a/src/p11-kit/pkg.sh b/src/p11-kit/pkg.sh new file mode 100644 index 0000000..5bfd9e2 --- /dev/null +++ b/src/p11-kit/pkg.sh @@ -0,0 +1,45 @@ +# general info +NAME="p11-kit" +DESC="Provides a way to load and enumerate PKCS#11 modules" +VERSION="0.25.5" + +# required files +FILES=( + "https://github.com/p11-glue/p11-kit/releases/download/${VERSION}/p11-kit-${VERSION}.tar.xz" + "trust-extract-compat" +) +HASHES=( + "04d0a86450cdb1be018f26af6699857171a188ac6d5b8c90786a60854e1198e5" + "74b2796f085047860109fe81f99dffea93983a4d7d165097b5b5da66c9296068" +) + +# install and build depends +DEPENDS=( + "libtasn1" "make-ca" "libxslt" + "nss" "systemd" "glibc" + "coreutils" +) +BUILD=() + +build(){ + tar xf "${NAME}-${VERSION}.tar.xz" + cd "${NAME}-${VERSION}" + + install -m644 "${ROOTDIR}/trust-extract-compat" trust/trust-extract-compat + sed '20,$ d' -i trust/trust-extract-compat + + mkdir p11-build + cd p11-build + + meson setup .. \ + --prefix=/usr \ + --buildtype=release \ + -Dtrust_paths=/etc/pki/anchors + ninja + + DESTDIR="${ROOTDIR}" ninja install + ln -sfv /usr/libexec/p11-kit/trust-extract-compat \ + "${ROOTDIR}/usr/bin/update-ca-certificates" + + cd ../.. && rm -r "${NAME}-${VERSION}" +} diff --git a/src/p11-kit/trust-extract-compat b/src/p11-kit/trust-extract-compat new file mode 100644 index 0000000..3aeb646 --- /dev/null +++ b/src/p11-kit/trust-extract-compat @@ -0,0 +1,5 @@ +# Copy existing anchor modifications to /etc/ssl/local +/usr/libexec/make-ca/copy-trust-modifications + +# Update trust stores +/usr/sbin/make-ca -r diff --git a/src/patch/.gitignore b/src/patch/.gitignore new file mode 100644 index 0000000..8b56c9f --- /dev/null +++ b/src/patch/.gitignore @@ -0,0 +1,3 @@ +.cache/ +dist/ +root/ diff --git a/src/patch/changes.md b/src/patch/changes.md new file mode 100644 index 0000000..284c57e --- /dev/null +++ b/src/patch/changes.md @@ -0,0 +1,2 @@ +# 2.7.6 +First version diff --git a/src/patch/pkg.sh b/src/patch/pkg.sh new file mode 100644 index 0000000..473deeb --- /dev/null +++ b/src/patch/pkg.sh @@ -0,0 +1,23 @@ +# general info +NAME="patch" +DESC="Takes a patch file containing a difference listing produced by the diff program and applies those differences to one or more original files" +VERSION="2.7.6" + +# required files +FILES=("https://ftp.gnu.org/gnu/patch/patch-${VERSION}.tar.xz") +HASHES=("78ad9937e4caadcba1526ef1853730d5") + +# install and build depends +DEPENDS=("attr" "glibc") +BUILD=() + +build(){ + tar xf "${NAME}-${VERSION}.tar.xz" + cd "${NAME}-${VERSION}" + + ./configure --prefix=/usr + make + make DESTDIR="${ROOTDIR}" install + + cd .. && rm -r "${NAME}-${VERSION}" +} diff --git a/src/perl/.gitignore b/src/perl/.gitignore new file mode 100644 index 0000000..8b56c9f --- /dev/null +++ b/src/perl/.gitignore @@ -0,0 +1,3 @@ +.cache/ +dist/ +root/ diff --git a/src/perl/changes.md b/src/perl/changes.md new file mode 100644 index 0000000..0fbaa9a --- /dev/null +++ b/src/perl/changes.md @@ -0,0 +1,2 @@ +# 5.38.2 +First version diff --git a/src/perl/pkg.sh b/src/perl/pkg.sh new file mode 100644 index 0000000..6bf7014 --- /dev/null +++ b/src/perl/pkg.sh @@ -0,0 +1,35 @@ +# general info +NAME="perl" +DESC="Highly capable, feature-rich programming language with over 36 years of development" +VERSION="5.38.2" + +_RVERSION="$(echo "${VERSION}" | cut -d. -f1)" +_DVERSION="${_RVERSION}.$(echo "${VERSION}" | cut -d. -f2)" + +# required files +FILES=("https://www.cpan.org/src/${_RVERSION}.0/perl-${VERSION}.tar.xz") +HASHES=("d3957d75042918a23ec0abac4a2b7e0a") + +# install and build depends +DEPENDS=("gdbm" "glibc" "libxcrypt" "procps") +BUILD=() + +build(){ + tar xf "${NAME}-${VERSION}.tar.xz" + cd "${NAME}-${VERSION}" + + sh Configure -des \ + -Dprefix=/usr \ + -Dvendorprefix=/usr \ + -Duseshrplib \ + -Dprivlib=/usr/lib/perl5/${_DVERSION}/core_perl \ + -Darchlib=/usr/lib/perl5/${_DVERSION}/core_perl \ + -Dsitelib=/usr/lib/perl5/${_DVERSION}/site_perl \ + -Dsitearch=/usr/lib/perl5/${_DVERSION}/site_perl \ + -Dvendorlib=/usr/lib/perl5/${_DVERSION}/vendor_perl \ + -Dvendorarch=/usr/lib/perl5/${_DVERSION}/vendor_perl + make + make DESTDIR="${ROOTDIR}" install + + cd .. && rm -r "${NAME}-${VERSION}" +} diff --git a/src/unixodbc/.gitignore b/src/unixodbc/.gitignore new file mode 100644 index 0000000..8b56c9f --- /dev/null +++ b/src/unixodbc/.gitignore @@ -0,0 +1,3 @@ +.cache/ +dist/ +root/ diff --git a/src/unixodbc/changes.md b/src/unixodbc/changes.md new file mode 100644 index 0000000..94690d3 --- /dev/null +++ b/src/unixodbc/changes.md @@ -0,0 +1,2 @@ +# 2.3.12 +First version diff --git a/src/unixodbc/pkg.sh b/src/unixodbc/pkg.sh new file mode 100644 index 0000000..fb8c6b0 --- /dev/null +++ b/src/unixodbc/pkg.sh @@ -0,0 +1,31 @@ +# general info +NAME="unixodbc" +DESC="Open Source ODBC sub-system and an ODBC SDK for UNIX" +VERSION="2.3.12" + +# required files +FILES=("https://github.com/lurcher/unixODBC/archive/refs/tags/${VERSION}.tar.gz") +HASHES=("b72ffed23f6e86c08a5c5d5db3f57b579a680b893dec38c9ae89230de49412df") + +# install and build depends +DEPENDS=("glibc" "readline" "libtool") +BUILD=() + +build(){ + tar xf "${VERSION}.tar.gz" + cd "unixODBC-${VERSION}" + + autoreconf -i + ./configure --prefix=/usr \ + --sysconfdir=/etc/unixODBC + make + make DESTDIR="${ROOTDIR}" install + + find doc -name "Makefile*" -delete + chmod 644 doc/{lst,ProgrammerManual/Tutorial}/* + + install -v -m755 -d "${ROOTDIR}/usr/share/doc/unixODBC-${VERSION}" + cp -v -R doc/* "${ROOTDIR}/usr/share/doc/unixODBC-${VERSION}" + + cd .. && rm -r "unixODBC-${VERSION}" +}