Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=50dd9b144ac843ab20ecc8e6d4d707311cc6bcc2

commit 50dd9b144ac843ab20ecc8e6d4d707311cc6bcc2
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Sun Dec 12 03:07:38 2010 +0100

frugalwareutils-0.9.2-6-i686

- add patch from git to write /etc/hostname
- add post_upgrade scriptlet to generate that file from /etc/HOSTNAME

diff --git a/source/base/frugalwareutils/FrugalBuild 
b/source/base/frugalwareutils/FrugalBuild
index 8b199eb..655af00 100644
--- a/source/base/frugalwareutils/FrugalBuild
+++ b/source/base/frugalwareutils/FrugalBuild
@@ -7,7 +7,7 @@ USE_APIDOCS=${USE_APIDOCS:-"y"}
pkgname=frugalwareutils
pkgver=0.9.2
Fuse $USE_DEVEL && pkgver=0.8.7.6.g3d85830
-pkgrel=5
+pkgrel=6
pkgdesc="Frugalware configuration utilities."
url="http://ftp.frugalware.org/pub/other/frugalwareutils";
depends=('glib2>=2.16.4-2' 'ncurses>=5.6-4' 'parted>=1.8.8-3' \
@@ -23,8 +23,9 @@ if ! Fuse $USE_DEVEL; then
source=($url/$pkgname-$pkgver.tar.gz \
http://git.frugalware.org/patches/frugalwareutils/2f1045bd15b173cd3dc07eb0251aaed48c97503f.patch
 \
http://git.frugalware.org/patches/frugalwareutils/ea72e89ffaec0d2948a8f4fd7d61119769bcf54d.patch
 \
-               
http://git.frugalware.org/patches/frugalwareutils/701cc3121aa772a0e582bff67daed17115221472.patch)
-       signatures=(${source[0]}.asc '' '' '')
+               
http://git.frugalware.org/patches/frugalwareutils/701cc3121aa772a0e582bff67daed17115221472.patch
 \
+               
http://git.frugalware.org/patches/frugalwareutils/51ef2e43c5eb084d9eca78cf0fc175193921cb09.patch)
+       signatures=(${source[0]}.asc '' '' '' '')
else
_F_scm_type="git"
_F_scm_url="git://git.frugalware.org/pub/other/frugalwareutils/frugalwareutils"
diff --git a/source/base/frugalwareutils/frugalwareutils.install 
b/source/base/frugalwareutils/frugalwareutils.install
new file mode 100644
index 0000000..c7a8635
--- /dev/null
+++ b/source/base/frugalwareutils/frugalwareutils.install
@@ -0,0 +1,11 @@
+post_upgrade()
+{
+       # for systemd
+       if [ -f /etc/HOSTNAME -a ! -f /etc/hostname ]; then
+               cat /etc/HOSTNAME | cut -f1 -d . > /etc/hostname
+       fi
+}
+
+op=$1
+shift
+$op $*
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to