Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] cups: cleanup template, adopt
@ 2020-05-28 12:47 Piraty
  2020-05-28 12:47 ` [PR PATCH] [Updated] " Piraty
  2020-05-31 16:40 ` [PR PATCH] [Merged]: " Piraty
  0 siblings, 2 replies; 3+ messages in thread
From: Piraty @ 2020-05-28 12:47 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Piraty/void-packages cups-template-cleanup
https://github.com/void-linux/void-packages/pull/22378

cups: cleanup template, adopt


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cups-template-cleanup-22378.patch --]
[-- Type: text/x-diff, Size: 4994 bytes --]

From ab7180f24d8c5b1bee5ab83641892ede18fafe25 Mon Sep 17 00:00:00 2001
From: Piraty <piraty1@inbox.ru>
Date: Thu, 28 May 2020 14:46:35 +0200
Subject: [PATCH] cups: cleanup template

---
 srcpkgs/cups/files/client.conf |  3 ++
 srcpkgs/cups/template          | 69 +++++++++++-----------------------
 2 files changed, 25 insertions(+), 47 deletions(-)
 create mode 100644 srcpkgs/cups/files/client.conf

diff --git a/srcpkgs/cups/files/client.conf b/srcpkgs/cups/files/client.conf
new file mode 100644
index 00000000000..cbdf4a13372
--- /dev/null
+++ b/srcpkgs/cups/files/client.conf
@@ -0,0 +1,3 @@
+# see 'man client.conf'
+ServerName /var/run/cups/cups.sock
+# alternative: ServerName hostname-or-ip-address[:port] of a remote server
diff --git a/srcpkgs/cups/template b/srcpkgs/cups/template
index 93b70ba4c8f..937298368a5 100644
--- a/srcpkgs/cups/template
+++ b/srcpkgs/cups/template
@@ -2,8 +2,10 @@
 pkgname=cups
 version=2.3.3
 revision=1
+build_style=gnu-configure
+make_install_args="BUILDROOT=${DESTDIR}"
 hostmakedepends="automake $(vopt_if avahi avahi-libs-devel)
- gnutls-devel pkg-config poppler-utils"
+ gnutls-devel perl pkg-config poppler-utils"
 makedepends="acl-devel gnutls-devel libpaper-devel libpng-devel
  libusb-devel pam-devel poppler-devel tiff-devel
  $(vopt_if avahi avahi-libs-devel)
@@ -18,15 +20,13 @@ checksum=261fd948bce8647b6d5cb2a1784f0c24cc52b5c4e827b71d726020bcc502f3ee
 
 conf_files="/etc/pam.d/cups /etc/cups/*.conf /etc/xinetd.d/cups-lpd"
 make_dirs="
-	/usr/lib/cups/driver	0755 root root
-	/var/log/cups 		0750 root root
-	/var/cache/cups/rss 	0750 cups lp
-	/var/spool/cups 	0755 cups lp
-	/etc/cups/ssl 		0700 cups lp"
+ /usr/lib/cups/driver 0755 root root
+ /var/log/cups 0750 root root
+ /var/cache/cups/rss 0750 cups lp
+ /var/spool/cups 0755 cups lp
+ /etc/cups/ssl 0700 cups lp"
 
 build_options="avahi gssapi"
-
-# Package build options
 build_options_default="avahi"
 
 system_accounts="cups"
@@ -40,42 +40,20 @@ pre_configure() {
 }
 
 do_configure() {
-	if [ "$CROSS_BUILD" ]; then
-		CC=cc AR= RANLIB= CFLAGS=-Os LDFLAGS= ./configure
-		make -C cups libcups.a
-		make -C man mantohtml
-		mkdir cross-tools
-		cp man/mantohtml cross-tools
-		make clean
-	fi
 	./configure ${configure_args} --sbindir=/usr/bin --libdir=/usr/lib \
 		--enable-acl --enable-dbus --enable-raw-printing \
 		--enable-threads --with-logdir=/var/log/cups \
 		--with-docdir=/usr/share/cups/doc --with-rundir=/run/cups \
 		--with-cups-user=cups --with-cups-group=lp --with-system-groups="lpadmin sys root" --enable-relro \
-		--enable-libpaper $(vopt_enable avahi) --enable-pam --enable-ssl \
+		--enable-libpaper --enable-pam --enable-ssl \
 		--with-menudir=/usr/share/applications --with-xinetd=/etc/xinetd.d \
 		--with-optim="${CFLAGS}" --disable-systemd --disable-launchd \
 		--without-rcdir --without-java --without-perl --without-php \
-		--without-python $(vopt_enable gssapi)
-}
-
-do_build() {
-	# Do not run genstrings binary in cross builds.
-	if [ "$CROSS_BUILD" ]; then
-		sed -e '/.\/genstrings.*/d' -i ppdc/Makefile
-		sed -e "s,./mantohtml,${wrksrc}/cross-tools/mantohtml,g" -i man/Makefile
-	fi
-	make ${makejobs}
-}
-
-do_check() {
-	make check
+		--without-python \
+		$(vopt_enable avahi) $(vopt_enable gssapi)
 }
 
-do_install() {
-	make BUILDROOT=${DESTDIR} install
-
+post_install() {
 	# compress some driver files, adopted from Fedora
 	find ${DESTDIR}/usr/share/cups/model -name "*.ppd"|xargs gzip -n9f
 	# install some more configuration files that will get filled by cupsd
@@ -83,26 +61,23 @@ do_install() {
 		touch ${DESTDIR}/etc/cups/${f}.conf
 	done
 
-	echo "# see 'man client.conf'" >> ${DESTDIR}/etc/cups/client.conf
-	echo "ServerName /var/run/cups/cups.sock" >> ${DESTDIR}/etc/cups/client.conf
-	echo "# alternative: ServerName hostname-or-ip-address[:port] of a remote server" >> \
-		${DESTDIR}/etc/cups/client.conf
-	# fix .desktop file
-	sed -i 's|^Exec=htmlview http://localhost:631/|Exec=xdg-open http://localhost:631/|g' \
-		${DESTDIR}/usr/share/applications/cups.desktop
-	# Install pam file
-	vinstall ${FILESDIR}/cups.pam 644 etc/pam.d cups
-
 	# Remove files provided by cups-filters.
 	rm -f ${DESTDIR}/usr/share/cups/banners/*
 	rm -f ${DESTDIR}/usr/share/cups/data/testprint
 	# comment out all conversion rules which use any of the removed filters
 	perl -p -i -e 's:^(.*\s+bannertops\s*)$:#\1:' \
 		${DESTDIR}/usr/share/cups/mime/mime.convs
-	# comment out unnecessary PageLogFormat entry
-	sed -i -e 's:PageLogFormat:#PageLogFormat:' ${DESTDIR}/etc/cups/cupsd.conf*
 
-	# runit service
+	# remove unnecessary PageLogFormat entry
+	vsed -i -e 's:PageLogFormat:#PageLogFormat:' ${DESTDIR}/etc/cups/cupsd.conf*
+
+	# fix .desktop file
+	vsed -i 's|^Exec=htmlview http://localhost:631/|Exec=xdg-open http://localhost:631/|g' \
+		${DESTDIR}/usr/share/applications/cups.desktop
+
+	vinstall ${FILESDIR}/cups.pam 644 etc/pam.d cups
+	vinstall ${FILESDIR}/client.conf 644 etc/cups client.conf
+
 	vsv cupsd
 }
 

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

* Re: [PR PATCH] [Updated] cups: cleanup template, adopt
  2020-05-28 12:47 [PR PATCH] cups: cleanup template, adopt Piraty
@ 2020-05-28 12:47 ` Piraty
  2020-05-31 16:40 ` [PR PATCH] [Merged]: " Piraty
  1 sibling, 0 replies; 3+ messages in thread
From: Piraty @ 2020-05-28 12:47 UTC (permalink / raw)
  To: ml

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

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

https://github.com/Piraty/void-packages cups-template-cleanup
https://github.com/void-linux/void-packages/pull/22378

cups: cleanup template, adopt


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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-cups-template-cleanup-22378.patch --]
[-- Type: text/x-diff, Size: 5001 bytes --]

From 54df48810aa0b67d66108451ec258fd5d178714d Mon Sep 17 00:00:00 2001
From: Piraty <piraty1@inbox.ru>
Date: Thu, 28 May 2020 14:46:35 +0200
Subject: [PATCH] cups: cleanup template, adopt

---
 srcpkgs/cups/files/client.conf |  3 ++
 srcpkgs/cups/template          | 69 +++++++++++-----------------------
 2 files changed, 25 insertions(+), 47 deletions(-)
 create mode 100644 srcpkgs/cups/files/client.conf

diff --git a/srcpkgs/cups/files/client.conf b/srcpkgs/cups/files/client.conf
new file mode 100644
index 00000000000..cbdf4a13372
--- /dev/null
+++ b/srcpkgs/cups/files/client.conf
@@ -0,0 +1,3 @@
+# see 'man client.conf'
+ServerName /var/run/cups/cups.sock
+# alternative: ServerName hostname-or-ip-address[:port] of a remote server
diff --git a/srcpkgs/cups/template b/srcpkgs/cups/template
index 93b70ba4c8f..937298368a5 100644
--- a/srcpkgs/cups/template
+++ b/srcpkgs/cups/template
@@ -2,8 +2,10 @@
 pkgname=cups
 version=2.3.3
 revision=1
+build_style=gnu-configure
+make_install_args="BUILDROOT=${DESTDIR}"
 hostmakedepends="automake $(vopt_if avahi avahi-libs-devel)
- gnutls-devel pkg-config poppler-utils"
+ gnutls-devel perl pkg-config poppler-utils"
 makedepends="acl-devel gnutls-devel libpaper-devel libpng-devel
  libusb-devel pam-devel poppler-devel tiff-devel
  $(vopt_if avahi avahi-libs-devel)
@@ -18,15 +20,13 @@ checksum=261fd948bce8647b6d5cb2a1784f0c24cc52b5c4e827b71d726020bcc502f3ee
 
 conf_files="/etc/pam.d/cups /etc/cups/*.conf /etc/xinetd.d/cups-lpd"
 make_dirs="
-	/usr/lib/cups/driver	0755 root root
-	/var/log/cups 		0750 root root
-	/var/cache/cups/rss 	0750 cups lp
-	/var/spool/cups 	0755 cups lp
-	/etc/cups/ssl 		0700 cups lp"
+ /usr/lib/cups/driver 0755 root root
+ /var/log/cups 0750 root root
+ /var/cache/cups/rss 0750 cups lp
+ /var/spool/cups 0755 cups lp
+ /etc/cups/ssl 0700 cups lp"
 
 build_options="avahi gssapi"
-
-# Package build options
 build_options_default="avahi"
 
 system_accounts="cups"
@@ -40,42 +40,20 @@ pre_configure() {
 }
 
 do_configure() {
-	if [ "$CROSS_BUILD" ]; then
-		CC=cc AR= RANLIB= CFLAGS=-Os LDFLAGS= ./configure
-		make -C cups libcups.a
-		make -C man mantohtml
-		mkdir cross-tools
-		cp man/mantohtml cross-tools
-		make clean
-	fi
 	./configure ${configure_args} --sbindir=/usr/bin --libdir=/usr/lib \
 		--enable-acl --enable-dbus --enable-raw-printing \
 		--enable-threads --with-logdir=/var/log/cups \
 		--with-docdir=/usr/share/cups/doc --with-rundir=/run/cups \
 		--with-cups-user=cups --with-cups-group=lp --with-system-groups="lpadmin sys root" --enable-relro \
-		--enable-libpaper $(vopt_enable avahi) --enable-pam --enable-ssl \
+		--enable-libpaper --enable-pam --enable-ssl \
 		--with-menudir=/usr/share/applications --with-xinetd=/etc/xinetd.d \
 		--with-optim="${CFLAGS}" --disable-systemd --disable-launchd \
 		--without-rcdir --without-java --without-perl --without-php \
-		--without-python $(vopt_enable gssapi)
-}
-
-do_build() {
-	# Do not run genstrings binary in cross builds.
-	if [ "$CROSS_BUILD" ]; then
-		sed -e '/.\/genstrings.*/d' -i ppdc/Makefile
-		sed -e "s,./mantohtml,${wrksrc}/cross-tools/mantohtml,g" -i man/Makefile
-	fi
-	make ${makejobs}
-}
-
-do_check() {
-	make check
+		--without-python \
+		$(vopt_enable avahi) $(vopt_enable gssapi)
 }
 
-do_install() {
-	make BUILDROOT=${DESTDIR} install
-
+post_install() {
 	# compress some driver files, adopted from Fedora
 	find ${DESTDIR}/usr/share/cups/model -name "*.ppd"|xargs gzip -n9f
 	# install some more configuration files that will get filled by cupsd
@@ -83,26 +61,23 @@ do_install() {
 		touch ${DESTDIR}/etc/cups/${f}.conf
 	done
 
-	echo "# see 'man client.conf'" >> ${DESTDIR}/etc/cups/client.conf
-	echo "ServerName /var/run/cups/cups.sock" >> ${DESTDIR}/etc/cups/client.conf
-	echo "# alternative: ServerName hostname-or-ip-address[:port] of a remote server" >> \
-		${DESTDIR}/etc/cups/client.conf
-	# fix .desktop file
-	sed -i 's|^Exec=htmlview http://localhost:631/|Exec=xdg-open http://localhost:631/|g' \
-		${DESTDIR}/usr/share/applications/cups.desktop
-	# Install pam file
-	vinstall ${FILESDIR}/cups.pam 644 etc/pam.d cups
-
 	# Remove files provided by cups-filters.
 	rm -f ${DESTDIR}/usr/share/cups/banners/*
 	rm -f ${DESTDIR}/usr/share/cups/data/testprint
 	# comment out all conversion rules which use any of the removed filters
 	perl -p -i -e 's:^(.*\s+bannertops\s*)$:#\1:' \
 		${DESTDIR}/usr/share/cups/mime/mime.convs
-	# comment out unnecessary PageLogFormat entry
-	sed -i -e 's:PageLogFormat:#PageLogFormat:' ${DESTDIR}/etc/cups/cupsd.conf*
 
-	# runit service
+	# remove unnecessary PageLogFormat entry
+	vsed -i -e 's:PageLogFormat:#PageLogFormat:' ${DESTDIR}/etc/cups/cupsd.conf*
+
+	# fix .desktop file
+	vsed -i 's|^Exec=htmlview http://localhost:631/|Exec=xdg-open http://localhost:631/|g' \
+		${DESTDIR}/usr/share/applications/cups.desktop
+
+	vinstall ${FILESDIR}/cups.pam 644 etc/pam.d cups
+	vinstall ${FILESDIR}/client.conf 644 etc/cups client.conf
+
 	vsv cupsd
 }
 

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

* Re: [PR PATCH] [Merged]: cups: cleanup template, adopt
  2020-05-28 12:47 [PR PATCH] cups: cleanup template, adopt Piraty
  2020-05-28 12:47 ` [PR PATCH] [Updated] " Piraty
@ 2020-05-31 16:40 ` Piraty
  1 sibling, 0 replies; 3+ messages in thread
From: Piraty @ 2020-05-31 16:40 UTC (permalink / raw)
  To: ml

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

There's a merged pull request on the void-packages repository

cups: cleanup template, adopt
https://github.com/void-linux/void-packages/pull/22378

Description:


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

end of thread, other threads:[~2020-05-31 16:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-28 12:47 [PR PATCH] cups: cleanup template, adopt Piraty
2020-05-28 12:47 ` [PR PATCH] [Updated] " Piraty
2020-05-31 16:40 ` [PR PATCH] [Merged]: " Piraty

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).