From 5023cbf40c6bf2992f3915d7923840108edba257 Mon Sep 17 00:00:00 2001 From: mtbishop Date: Tue, 22 Jan 2008 09:20:05 +0000 Subject: [PATCH] better distro whitelisting. Open to suggestions here. --- packages/vtun.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vtun.spec b/packages/vtun.spec index 8de2e2b..612bddb 100644 --- a/packages/vtun.spec +++ b/packages/vtun.spec @@ -1,4 +1,4 @@ -# $Id: vtun.spec,v 1.24.2.6 2008/01/22 05:58:00 mtbishop Exp $ +# $Id: vtun.spec,v 1.24.2.7 2008/01/22 09:20:05 mtbishop Exp $ # By default, builds without socks-support. # To build with socks-support, issue: @@ -19,7 +19,7 @@ # expansion of the previous part. # get the distro mark (eg rh70) -%define _dis %(case `rpm -qf /etc/issue 2>/dev/null` in (redhat-*) echo rh;; (mandrake-*) echo mdk ;; (fedora-*) echo fc ;; (openlinux-*) echo ol ;; (whitebox-*) echo wb ;; (xos-*) echo xos ;;(SuSE-*) echo suse ;; esac) +%define _dis %(rpm -qf /etc/issue 2>/dev/null|sed 's/-release//;s/redhat/rh/;s/mandrake/mdk/;s/fedora/fc/;s/openlinux/ol/;s/whitebox/wb/') %define _tro %(rpm -qf --qf "%%{version}" /etc/issue | sed 's/\\.//g' ) %define rc_dir_suse /etc/init.d