aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-01-07 14:10:27 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-01-07 14:20:18 +0000
commit1ef266443bf46d0f1bbc572570e205408729f762 (patch)
tree621cf6d02374277e9e7226a3e6a2ff1ed656169b /main
parent7e312e0bb87d0e8c6c0c469036873648eb841749 (diff)
downloadaports-1ef266443bf46d0f1bbc572570e205408729f762.tar.bz2
aports-1ef266443bf46d0f1bbc572570e205408729f762.tar.xz
main/alpine-conf: upgrade to 2.5.5
Diffstat (limited to 'main')
-rw-r--r--main/alpine-conf/0001-lbu-remount-LBU_MEDIA-as-read-write-if-it-was-read-o.patch87
-rw-r--r--main/alpine-conf/APKBUILD10
-rw-r--r--main/alpine-conf/editor.patch27
3 files changed, 3 insertions, 121 deletions
diff --git a/main/alpine-conf/0001-lbu-remount-LBU_MEDIA-as-read-write-if-it-was-read-o.patch b/main/alpine-conf/0001-lbu-remount-LBU_MEDIA-as-read-write-if-it-was-read-o.patch
deleted file mode 100644
index ad8dd2e5c1..0000000000
--- a/main/alpine-conf/0001-lbu-remount-LBU_MEDIA-as-read-write-if-it-was-read-o.patch
+++ /dev/null
@@ -1,87 +0,0 @@
-From 4e7ab7455206ec157a72d07c40c07f1a299529f1 Mon Sep 17 00:00:00 2001
-From: Natanael Copa <ncopa@alpinelinux.org>
-Date: Fri, 3 Dec 2010 08:49:43 +0000
-Subject: [PATCH] lbu: remount LBU_MEDIA as read-write if it was read-only
-
-ref #477
----
- lbu.in | 34 +++++++++++++++++++++++++++++-----
- 1 files changed, 29 insertions(+), 5 deletions(-)
-
-diff --git a/lbu.in b/lbu.in
-index dfd7e3c..a0dfe16 100644
---- a/lbu.in
-+++ b/lbu.in
-@@ -1,7 +1,7 @@
- #!/bin/sh
-
- # lbu - utility to create local backups.
--# Copyright (c) 2006 Natanael Copa
-+# Copyright (c) 2006-2010 Natanael Copa <ncopa@alpinelinux.org>
- # May be distributed under GPL2
-
- VERSION=@VERSION@
-@@ -54,6 +54,9 @@ Common options:
-
- cleanup() {
- local i
-+ for i in $REMOUNT_RO_LIST; do
-+ mount -o remount,ro $i
-+ done
- for i in $UMOUNT_LIST; do
- umount $i
- done
-@@ -64,9 +67,30 @@ exit_clean() {
- exit 1
- }
-
-+# check if given dir is not a mounted mountpoint
-+is_unmounted() {
-+ awk "\$2 == \"$1\" {exit 1}" /proc/mounts
-+}
-+
- mount_once() {
-- if awk "\$2 == \"$1\" {exit 1}" /proc/mounts; then
-- mount $1 && UMOUNT_LIST="$1 $UMOUNT_LIST"
-+ if is_unmounted "$1"; then
-+ mount $1 && UMOUNT_LIST="$1 $UMOUNT_LIST" || return 1
-+ fi
-+}
-+
-+# check if given dir is read-only
-+is_ro() {
-+ local tmpfile=$(mktemp -p "$1")
-+ [ -z "$tmpfile" ] && return 0
-+ rm -f "$tmpfile"
-+ return 1
-+}
-+
-+mount_once_rw() {
-+ mount_once "$1" || return 1
-+ if is_ro "$1"; then
-+ REMOUNT_RO_LIST="$1 $REMOUNT_RO_LIST"
-+ mount -o remount,rw "$1"
- fi
- }
-
-@@ -385,7 +409,7 @@ cmd_commit() {
- # mount media unles its already mounted
- mnt=/media/$media
- [ -d "$mnt" ] || usage
-- mount_once "$mnt" || die "failed to mount $mnt"
-+ mount_once_rw "$mnt" || die "failed to mount $mnt"
-
- # find the outfile
- outfile="$mnt/$(hostname).apkovl.tar.gz"
-@@ -538,7 +562,7 @@ cmd_revert() {
- if [ -n "$ENCRYPTION" ]; then
- current="$current.$ENCRYPTION"
- fi
-- mount_once "$mnt" || die "failed to mount $mnt"
-+ mount_once_rw "$mnt" || die "failed to mount $mnt"
- [ -f "$revertto" ] || die "file not found: $revertto"
- backup_apkovl "$current"
- vecho "Reverting to $1"
---
-1.7.3.2
-
diff --git a/main/alpine-conf/APKBUILD b/main/alpine-conf/APKBUILD
index 778a9ba69c..21f217ea79 100644
--- a/main/alpine-conf/APKBUILD
+++ b/main/alpine-conf/APKBUILD
@@ -1,13 +1,11 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alpine-conf
-pkgver=2.5.4
-pkgrel=2
+pkgver=2.5.5
+pkgrel=0
pkgdesc="Alpine configuration management scripts"
url=http://git.alpinelinux.org/cgit/$pkgname
depends="openrc"
source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2
- 0001-lbu-remount-LBU_MEDIA-as-read-write-if-it-was-read-o.patch
- editor.patch
"
arch="noarch"
license="GPL-2"
@@ -37,6 +35,4 @@ package() {
ln -s lbu "$pkgdir"/sbin/lbu_$i
done
}
-md5sums="91a2b8a150917cc06f6c9ec839b70bb0 alpine-conf-2.5.4.tar.bz2
-9245a4bc53b24584d43b3a3f1556c500 0001-lbu-remount-LBU_MEDIA-as-read-write-if-it-was-read-o.patch
-c6f425ae21ff983f94b64eef8c236b22 editor.patch"
+md5sums="63b062e5d3b2d21af88b4c87166cea98 alpine-conf-2.5.5.tar.bz2"
diff --git a/main/alpine-conf/editor.patch b/main/alpine-conf/editor.patch
deleted file mode 100644
index bec421e5fa..0000000000
--- a/main/alpine-conf/editor.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-commit ca0e10950a5db60121ac741f0bad28af9bb504b9
-Author: Natanael Copa <ncopa@alpinelinux.org>
-Date: Tue Dec 28 13:27:55 2010 +0000
-
- setup-interfaces: use vi as default editor
-
- since nano is not shipped with mini iso.
-
-diff --git a/setup-interfaces.in b/setup-interfaces.in
-index aad042d..b96ee58 100755
---- a/setup-interfaces.in
-+++ b/setup-interfaces.in
-@@ -141,12 +141,11 @@ while [ "$answer" != "yes" ] && [ "$answer" != "no" ] ; do
- done
-
- if [ "$answer" = "yes" ]; then
-- [ -z "$EDITOR" ] && EDITOR=nano
-- case $EDITOR in
-+ case "$EDITOR" in
- nano) pkg_inst nano;;
- vim) pkg_inst vim;;
- esac
-- $EDITOR interfaces
-+ ${EDITOR:-vi} interfaces
- fi
-
- mkdir -p $ROOT/etc/network