aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-03-07 13:24:16 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-03-07 13:24:16 +0000
commit11ecc62278b65c6db8d6dec66a61c43f2118f47a (patch)
tree4dc058e1351e60c02a012f16556fc9bf511c4b40
parent3f32504885104e22136d768852e72173e38158b9 (diff)
downloadalpine_aports-11ecc62278b65c6db8d6dec66a61c43f2118f47a.tar.bz2
alpine_aports-11ecc62278b65c6db8d6dec66a61c43f2118f47a.tar.xz
alpine_aports-11ecc62278b65c6db8d6dec66a61c43f2118f47a.zip
main/alpine-conf: fix for setup-acf
fixes #530 (cherry picked from commit d50cd6eee4aeb3f54c40a806175726304f6cf765) Conflicts: main/alpine-conf/APKBUILD
-rw-r--r--main/alpine-conf/0001-Bugfix-If-hostname-f-does-not-work-then-ssl-creation.patch26
-rw-r--r--main/alpine-conf/APKBUILD8
2 files changed, 31 insertions, 3 deletions
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 0000000000..3d21e503de
--- /dev/null
+++ b/main/alpine-conf/0001-Bugfix-If-hostname-f-does-not-work-then-ssl-creation.patch
@@ -0,0 +1,26 @@
1From 325534f013c9b1a46d7587048f913a1984c46802 Mon Sep 17 00:00:00 2001
2From: Mika Havela <mika.havela@gmail.com>
3Date: Wed, 9 Feb 2011 10:21:15 +0100
4Subject: [PATCH] Bugfix: If hostname -f does not work, then ssl creation will break and acf won't work
5
6FQDN 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.
7---
8 setup-acf.in | 2 +-
9 1 files changed, 1 insertions(+), 1 deletions(-)
10
11diff --git a/setup-acf.in b/setup-acf.in
12index 4f2afec..c6f621e 100644
13--- a/setup-acf.in
14+++ b/setup-acf.in
15@@ -75,7 +75,7 @@ prompt = no
16
17 [ req_dn ]
18 OU=HTTPS server
19-CN=$(hostname -f)
20+CN=$(hostname -f || hostname)
21 emailAddress=${EMAIL:-postmaster@example.com}
22
23 [ cert_type ]
24--
251.7.3.5
26
diff --git a/main/alpine-conf/APKBUILD b/main/alpine-conf/APKBUILD
index ab17d1e55b..08c56505cd 100644
--- a/main/alpine-conf/APKBUILD
+++ b/main/alpine-conf/APKBUILD
@@ -1,12 +1,13 @@
1# Maintainer: Natanael Copa <ncopa@alpinelinux.org> 1# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
2pkgname=alpine-conf 2pkgname=alpine-conf
3pkgver=2.5.4 3pkgver=2.5.4
4pkgrel=1 4pkgrel=2
5pkgdesc="Alpine configuration management scripts" 5pkgdesc="Alpine configuration management scripts"
6url=http://git.alpinelinux.org/cgit/$pkgname 6url=http://git.alpinelinux.org/cgit/$pkgname
7depends="openrc" 7depends="openrc"
8source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2 8source="http://git.alpinelinux.org/cgit/$pkgname.git/snapshot/$pkgname-$pkgver.tar.bz2
9 editor.patch 9 editor.patch
10 0001-Bugfix-If-hostname-f-does-not-work-then-ssl-creation.patch
10 " 11 "
11arch="noarch" 12arch="noarch"
12license="GPL-2" 13license="GPL-2"
@@ -37,4 +38,5 @@ package() {
37 done 38 done
38} 39}
39md5sums="91a2b8a150917cc06f6c9ec839b70bb0 alpine-conf-2.5.4.tar.bz2 40md5sums="91a2b8a150917cc06f6c9ec839b70bb0 alpine-conf-2.5.4.tar.bz2
40c6f425ae21ff983f94b64eef8c236b22 editor.patch" 41c6f425ae21ff983f94b64eef8c236b22 editor.patch
42e26e1250fdd31edebd1303ea51dd635c 0001-Bugfix-If-hostname-f-does-not-work-then-ssl-creation.patch"