Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: tinycdb-0.78
@ 2021-01-21  4:11 jailbird777
  2021-01-21  4:14 ` [PR PATCH] [Updated] " jailbird777
  0 siblings, 1 reply; 2+ messages in thread
From: jailbird777 @ 2021-01-21  4:11 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1239 bytes --]

There is a new pull request by jailbird777 against master on the void-packages repository

https://github.com/jailbird777/void-packages master
https://github.com/void-linux/void-packages/pull/28067

New package: tinycdb-0.78
#### General
- [X] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [X] I built this PR locally for my native architecture, (x86-64-musl)
- [X] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [X] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl

This is needed for at least dnsdist, which I'm going to open another PR for.  I'm sure other software can use it, also.


A patch file from https://github.com/void-linux/void-packages/pull/28067.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-28067.patch --]
[-- Type: text/x-diff, Size: 2524 bytes --]

From 21d3bf00333f27c04acd41117956ccd3ecf839b7 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Wed, 20 Jan 2021 22:06:36 -0600
Subject: [PATCH] New package: tinycdb-0.78

---
 common/shlibs            |  1 +
 srcpkgs/libtinycdb       |  1 +
 srcpkgs/tinycdb-devel    |  1 +
 srcpkgs/tinycdb/template | 47 ++++++++++++++++++++++++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 100644 srcpkgs/libtinycdb
 create mode 100644 srcpkgs/tinycdb-devel
 create mode 100644 srcpkgs/tinycdb/template

diff --git a/common/shlibs b/common/shlibs
index e030495fd63..befbc2ebe97 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4045,3 +4045,4 @@ libutil-cmdline-samba4.so samba-libs-4.13.2_1
 libwinbind-client-samba4.so samba-libs-4.13.2_1
 libsixel.so.1 libsixel-1.8.6_1
 libpamtest.so.0 pam_wrapper-1.1.3_1
+libcdb.so.1 libtinycdb-0.78_1
diff --git a/srcpkgs/libtinycdb b/srcpkgs/libtinycdb
new file mode 100644
index 00000000000..e81cc9c1516
--- /dev/null
+++ b/srcpkgs/libtinycdb
@@ -0,0 +1 @@
+tinycdb
\ No newline at end of file
diff --git a/srcpkgs/tinycdb-devel b/srcpkgs/tinycdb-devel
new file mode 100644
index 00000000000..e81cc9c1516
--- /dev/null
+++ b/srcpkgs/tinycdb-devel
@@ -0,0 +1 @@
+tinycdb
\ No newline at end of file
diff --git a/srcpkgs/tinycdb/template b/srcpkgs/tinycdb/template
new file mode 100644
index 00000000000..fa09a9c1db0
--- /dev/null
+++ b/srcpkgs/tinycdb/template
@@ -0,0 +1,47 @@
+# Template file for 'tinycdb'
+pkgname=tinycdb
+version=0.78
+revision=1
+build_style=gnu-makefile
+make_build_target=shared
+make_build_args="LD=\$(CC)"
+short_desc="Alternative constant database library"
+maintainer="JailBird <jailbird@fdf.net>"
+license="Public Domain"
+homepage="http://www.corpit.ru/mjt/tinycdb.html"
+distfiles="http://www.corpit.ru/mjt/${pkgname}/${pkgname}-${version}.tar.gz"
+checksum=50678f432d8ada8d69f728ec11c3140e151813a7847cf30a62d86f3a720ed63c
+
+do_install() {
+	vbin cdb-shared cdb
+
+	vinstall libcdb.so.1 755 usr/lib
+	vinstall cdb.h 644 usr/include
+
+	for f in 1 3 5; do
+		vman cdb.${f}
+	done
+
+        vmkdir $DESTDIR/usr/lib
+        ln -s libcdb.so.1 $DESTDIR/usr/lib/libcdb.so
+
+	vdoc ChangeLog
+	vdoc NEWS
+}
+
+libtinycdb_package() {
+	short_desc+=" - shared library"
+	pkg_install() {
+		vmove "usr/lib/libcdb.so.*"
+	}
+}
+
+tinycdb-devel_package() {
+	depends="libtinycdb>=${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove "usr/lib/*.so"
+		vmove usr/share/man/man3
+	}
+}

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Updated] New package: tinycdb-0.78
  2021-01-21  4:11 [PR PATCH] New package: tinycdb-0.78 jailbird777
@ 2021-01-21  4:14 ` jailbird777
  0 siblings, 0 replies; 2+ messages in thread
From: jailbird777 @ 2021-01-21  4:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1244 bytes --]

There is an updated pull request by jailbird777 against master on the void-packages repository

https://github.com/jailbird777/void-packages master
https://github.com/void-linux/void-packages/pull/28067

New package: tinycdb-0.78
#### General
- [X] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [X] I built this PR locally for my native architecture, (x86-64-musl)
- [X] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [X] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl

This is needed for at least dnsdist, which I'm going to open another PR for.  I'm sure other software can use it, also.


A patch file from https://github.com/void-linux/void-packages/pull/28067.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-28067.patch --]
[-- Type: text/x-diff, Size: 3216 bytes --]

From 21d3bf00333f27c04acd41117956ccd3ecf839b7 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Wed, 20 Jan 2021 22:06:36 -0600
Subject: [PATCH 1/2] New package: tinycdb-0.78

---
 common/shlibs            |  1 +
 srcpkgs/libtinycdb       |  1 +
 srcpkgs/tinycdb-devel    |  1 +
 srcpkgs/tinycdb/template | 47 ++++++++++++++++++++++++++++++++++++++++
 4 files changed, 50 insertions(+)
 create mode 100644 srcpkgs/libtinycdb
 create mode 100644 srcpkgs/tinycdb-devel
 create mode 100644 srcpkgs/tinycdb/template

diff --git a/common/shlibs b/common/shlibs
index e030495fd63..befbc2ebe97 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -4045,3 +4045,4 @@ libutil-cmdline-samba4.so samba-libs-4.13.2_1
 libwinbind-client-samba4.so samba-libs-4.13.2_1
 libsixel.so.1 libsixel-1.8.6_1
 libpamtest.so.0 pam_wrapper-1.1.3_1
+libcdb.so.1 libtinycdb-0.78_1
diff --git a/srcpkgs/libtinycdb b/srcpkgs/libtinycdb
new file mode 100644
index 00000000000..e81cc9c1516
--- /dev/null
+++ b/srcpkgs/libtinycdb
@@ -0,0 +1 @@
+tinycdb
\ No newline at end of file
diff --git a/srcpkgs/tinycdb-devel b/srcpkgs/tinycdb-devel
new file mode 100644
index 00000000000..e81cc9c1516
--- /dev/null
+++ b/srcpkgs/tinycdb-devel
@@ -0,0 +1 @@
+tinycdb
\ No newline at end of file
diff --git a/srcpkgs/tinycdb/template b/srcpkgs/tinycdb/template
new file mode 100644
index 00000000000..fa09a9c1db0
--- /dev/null
+++ b/srcpkgs/tinycdb/template
@@ -0,0 +1,47 @@
+# Template file for 'tinycdb'
+pkgname=tinycdb
+version=0.78
+revision=1
+build_style=gnu-makefile
+make_build_target=shared
+make_build_args="LD=\$(CC)"
+short_desc="Alternative constant database library"
+maintainer="JailBird <jailbird@fdf.net>"
+license="Public Domain"
+homepage="http://www.corpit.ru/mjt/tinycdb.html"
+distfiles="http://www.corpit.ru/mjt/${pkgname}/${pkgname}-${version}.tar.gz"
+checksum=50678f432d8ada8d69f728ec11c3140e151813a7847cf30a62d86f3a720ed63c
+
+do_install() {
+	vbin cdb-shared cdb
+
+	vinstall libcdb.so.1 755 usr/lib
+	vinstall cdb.h 644 usr/include
+
+	for f in 1 3 5; do
+		vman cdb.${f}
+	done
+
+        vmkdir $DESTDIR/usr/lib
+        ln -s libcdb.so.1 $DESTDIR/usr/lib/libcdb.so
+
+	vdoc ChangeLog
+	vdoc NEWS
+}
+
+libtinycdb_package() {
+	short_desc+=" - shared library"
+	pkg_install() {
+		vmove "usr/lib/libcdb.so.*"
+	}
+}
+
+tinycdb-devel_package() {
+	depends="libtinycdb>=${version}_${revision}"
+	short_desc+=" - development files"
+	pkg_install() {
+		vmove usr/include
+		vmove "usr/lib/*.so"
+		vmove usr/share/man/man3
+	}
+}

From 66934e5865e9f550ee4989ced3315f9a2e6faec1 Mon Sep 17 00:00:00 2001
From: JailBird <jailbird@fdf.net>
Date: Wed, 20 Jan 2021 22:14:22 -0600
Subject: [PATCH 2/2] Fix tab/space mix

---
 srcpkgs/tinycdb/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/tinycdb/template b/srcpkgs/tinycdb/template
index fa09a9c1db0..9995add84f4 100644
--- a/srcpkgs/tinycdb/template
+++ b/srcpkgs/tinycdb/template
@@ -22,8 +22,8 @@ do_install() {
 		vman cdb.${f}
 	done
 
-        vmkdir $DESTDIR/usr/lib
-        ln -s libcdb.so.1 $DESTDIR/usr/lib/libcdb.so
+	vmkdir $DESTDIR/usr/lib
+	ln -s libcdb.so.1 $DESTDIR/usr/lib/libcdb.so
 
 	vdoc ChangeLog
 	vdoc NEWS

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-21  4:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-21  4:11 [PR PATCH] New package: tinycdb-0.78 jailbird777
2021-01-21  4:14 ` [PR PATCH] [Updated] " jailbird777

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).