aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-07-15 09:33:04 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-07-15 09:33:37 +0000
commit26a4a02b897639ae2b2fe664be2b3e35da62d27a (patch)
tree21fa54321fb01c5670d5431439f251973e7a6292 /main
parente6fc1b1287679c08293d1328dd684e6aa83c088a (diff)
downloadaports-26a4a02b897639ae2b2fe664be2b3e35da62d27a.tar.bz2
aports-26a4a02b897639ae2b2fe664be2b3e35da62d27a.tar.xz
main/cups: upgrade to 1.7.4
Diffstat (limited to 'main')
-rw-r--r--main/cups/APKBUILD18
-rw-r--r--main/cups/cups-check-sockaddr-size.patch45
-rw-r--r--main/cups/cups-httpAddrLength.patch13
3 files changed, 22 insertions, 54 deletions
diff --git a/main/cups/APKBUILD b/main/cups/APKBUILD
index 9f2352a262..000d188f13 100644
--- a/main/cups/APKBUILD
+++ b/main/cups/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=cups
-pkgver=1.7.3
-pkgrel=1
+pkgver=1.7.4
+pkgrel=0
pkgdesc="The CUPS Printing System"
url="http://www.cups.org/"
arch="all"
@@ -19,7 +19,7 @@ source="http://www.cups.org/software/$pkgver/cups-$pkgver-source.tar.bz2
$pkgname.logrotate
cupsd.initd
cups-no-export-ssllibs.patch
- cups-check-sockaddr-size.patch
+ cups-httpAddrLength.patch
"
_builddir="$srcdir"/$pkgname-$pkgver
@@ -118,18 +118,18 @@ client() {
usr/sbin/reject
}
-md5sums="d498c3020acda0904ab0c13b6389a1ec cups-1.7.3-source.tar.bz2
+md5sums="1a2295c2b2d2f422db2e50f40ed2fb99 cups-1.7.4-source.tar.bz2
f861b18f4446c43918c8643dcbbd7f6d cups.logrotate
1154ed66fdcfa0523f929a369079f43c cupsd.initd
3ba9e3410df1dc3015463d615ef91b3b cups-no-export-ssllibs.patch
-81391375d22df6808a1042a0fae85845 cups-check-sockaddr-size.patch"
-sha256sums="fa989f856d1499169dc442fb2311053ea42fe455ca2721693ba5a9fe4b333e31 cups-1.7.3-source.tar.bz2
+61d3cc673ee74016e76fc8ae88e2aa1f cups-httpAddrLength.patch"
+sha256sums="358fc7f22395a9ba07efcfc0d34a057ab5e9182b6e3297f71263a6b68fb41378 cups-1.7.4-source.tar.bz2
b3308353504bc1cc0d5203ad3609bc98639ad9655b52e8ec8257286877532796 cups.logrotate
3ea71f13cf925736847ca44aa0f1a9ed944fb3d303c34af923140b20fd587e2b cupsd.initd
ff3eb0782af0405f5dafe89e04b1b4ea7a49afc5496860d724343bd04f375832 cups-no-export-ssllibs.patch
-32a06c70093f8ad52e35520048b68d544f13f5c8094f85bab53ff54c809012ef cups-check-sockaddr-size.patch"
-sha512sums="78e5275682322a52c5e10d87c106059900595c4fd167924bece30d32b646c304ecc0f5051c53cb983b75d5a5ab76fd5b81931fb6f191b9e936f2528ca869798e cups-1.7.3-source.tar.bz2
+6996a13f77d559e8566666764435c71c4dcf7d9af9aeed48f3c70f4f177a046a cups-httpAddrLength.patch"
+sha512sums="af86076cbaa008e2c4b9a144d2999a0f1a77d801a256fd4021d4d830bb59322542181e58b54b8b36d929215e1c0db1e3f79cf58a448df64361baf46c05f84d65 cups-1.7.4-source.tar.bz2
162fe69ee46962f7ce07a9a2a75154682088895c4749c9bcfc54bb2aa861f48d7d1a8e3223f78a197319a3a405626ffe996615f6eb23168afcefabab343d5be0 cups.logrotate
3c5f4017cb1faf3e63551db53da4cb8305601adf65358bc53e982c5a0dfdd2b455a8ce735760ae3cc5ef81cdfa2a3cfe4be4107d1858d7ab9d91b4b97d3bc73b cupsd.initd
7a8cd9ac33b0dd4627c72df4275db8ccd7cf8e201bce3833719b42f532f526bb347b842e3ea1ef0d61855b5c6e1088b5d20b68942f2c2c0acf504d8d9728efd3 cups-no-export-ssllibs.patch
-ef0d1d80bf78de8bc29821f675891409605515a89358615d56b76d534ee0935ac9cffa625ba8622f5351d0efc030dead11d885b1f125df2beb42e3afd377ff9a cups-check-sockaddr-size.patch"
+210a0c5f445e2e116a8935142f6a067ffaa2a12f7a0f8ca6e3dd3da6adce4ce75e4953fca8ee4a6eda79a6338b027bc0a6afa65e17f2158abed4de2907565d52 cups-httpAddrLength.patch"
diff --git a/main/cups/cups-check-sockaddr-size.patch b/main/cups/cups-check-sockaddr-size.patch
deleted file mode 100644
index ce966dc970..0000000000
--- a/main/cups/cups-check-sockaddr-size.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-diff --git a/backend/lpd.c b/backend/lpd.c
-index 6e4ab36..bbffb82 100644
---- a/backend/lpd.c
-+++ b/backend/lpd.c
-@@ -1244,6 +1244,7 @@ rresvport_af(int *port, /* IO - Port number to bind to */
- {
- http_addr_t addr; /* Socket address */
- int fd; /* Socket file descriptor */
-+ socklen_t socksz=sizeof(struct sockaddr); /* size of struct sockaddr* */
-
-
- /*
-@@ -1260,6 +1261,23 @@ rresvport_af(int *port, /* IO - Port number to bind to */
- memset(&addr, 0, sizeof(addr));
- addr.addr.sa_family = family;
-
-+ switch(family) {
-+ case AF_INET:
-+ socksz = sizeof(struct sockaddr_in);
-+ break;
-+#ifdef AF_INET6
-+ case AF_INET6:
-+ socksz = sizeof(struct sockaddr_in6);
-+ break;
-+#endif
-+#ifdef AF_LOCAL
-+ case AF_LOCAL:
-+ socksz = sizeof(struct sockaddr_un);
-+#endif
-+ default:
-+ break;
-+ }
-+
- /*
- * Try to bind the socket to a reserved port...
- */
-@@ -1276,7 +1294,7 @@ rresvport_af(int *port, /* IO - Port number to bind to */
- * Try binding the port to the socket; return if all is OK...
- */
-
-- if (!bind(fd, (struct sockaddr *)&addr, sizeof(addr)))
-+ if (!bind(fd, (struct sockaddr *)&addr, socksz))
- return (fd);
-
- /*
diff --git a/main/cups/cups-httpAddrLength.patch b/main/cups/cups-httpAddrLength.patch
new file mode 100644
index 0000000000..aea8bb409f
--- /dev/null
+++ b/main/cups/cups-httpAddrLength.patch
@@ -0,0 +1,13 @@
+diff --git a/backend/lpd.c b/backend/lpd.c
+index 48d1a5f..0a1bd1e 100644
+--- a/backend/lpd.c
++++ b/backend/lpd.c
+@@ -1269,7 +1269,7 @@ rresvport_af(int *port, /* IO - Port number to bind to */
+ * Try binding the port to the socket; return if all is OK...
+ */
+
+- if (!bind(fd, (struct sockaddr *)&addr, httpAddrSize(&addr)))
++ if (!bind(fd, (struct sockaddr *)&addr, httpAddrLength(&addr)))
+ return (fd);
+
+ /*