From d50cd6eee4aeb3f54c40a806175726304f6cf765 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 22 Feb 2011 14:50:14 +0000 Subject: main/alpine-conf: fix for setup-acf ref #530 --- ...ostname-f-does-not-work-then-ssl-creation.patch | 26 ++++++++++++++++++++++ main/alpine-conf/APKBUILD | 6 +++-- 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 main/alpine-conf/0001-Bugfix-If-hostname-f-does-not-work-then-ssl-creation.patch (limited to 'main/alpine-conf') diff --git a/main/alpine-conf/0001-Bugfix-If-hostname-f-does-not-work-then-ssl-creation.patch b/main/alpine-conf/0001-Bugfix-If-hostname-f-does-not-work-then-ssl-creation.patch new file mode 100644 index 000000000..3d21e503d --- /dev/null +++ b/main/alpine-conf/0001-Bugfix-If-hostname-f-does-not-work-then-ssl-creation.patch @@ -0,0 +1,26 @@ +From 325534f013c9b1a46d7587048f913a1984c46802 Mon Sep 17 00:00:00 2001 +From: Mika Havela +Date: Wed, 9 Feb 2011 10:21:15 +0100 +Subject: [PATCH] Bugfix: If hostname -f does not work, then ssl creation will break and acf won't work + +FQDN hostname might not be set in /etc/hosts and this could cause 'hostname -f' to fail. Even this does not happen too often, it still is a possibility. This patch prevents the problem. +--- + setup-acf.in | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/setup-acf.in b/setup-acf.in +index 4f2afec..c6f621e 100644 +--- a/setup-acf.in ++++ b/setup-acf.in +@@ -75,7 +75,7 @@ prompt = no + + [ req_dn ] + OU=HTTPS server +-CN=$(hostname -f) ++CN=$(hostname -f || hostname) + emailAddress=${EMAIL:-postmaster@example.com} + + [ cert_type ] +-- +1.7.3.5 + diff --git a/main/alpine-conf/APKBUILD b/main/alpine-conf/APKBUILD index e80ed9797..860bb145d 100644 --- a/main/alpine-conf/APKBUILD +++ b/main/alpine-conf/APKBUILD @@ -1,11 +1,12 @@ # Maintainer: Natanael Copa pkgname=alpine-conf pkgver=2.5.5 -pkgrel=1 +pkgrel=2 pkgdesc="Alpine configuration management scripts" url=http://git.alpinelinux.org/cgit/$pkgname depends="openrc" source="http://git.alpinelinux.org/cgit/$pkgname.git/snapshot/$pkgname-$pkgver.tar.bz2 + 0001-Bugfix-If-hostname-f-does-not-work-then-ssl-creation.patch " arch="noarch" license="GPL-2" @@ -35,4 +36,5 @@ package() { ln -s lbu "$pkgdir"/sbin/lbu_$i done } -md5sums="63b062e5d3b2d21af88b4c87166cea98 alpine-conf-2.5.5.tar.bz2" +md5sums="63b062e5d3b2d21af88b4c87166cea98 alpine-conf-2.5.5.tar.bz2 +e26e1250fdd31edebd1303ea51dd635c 0001-Bugfix-If-hostname-f-does-not-work-then-ssl-creation.patch" -- cgit v1.2.3