X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=util-vserver%2Fsysv%2FMakefile-files;fp=util-vserver%2Fsysv%2FMakefile-files;h=6601c4e32e06513bc9e9092014a74b6f1dbb172e;hb=da691fd4bad5e187b307b7fd86bf5fd61e47c3fc;hp=0000000000000000000000000000000000000000;hpb=d5b1a6d4087708da251095c2a23c1e64f6531da9;p=util-vserver.git diff --git a/util-vserver/sysv/Makefile-files b/util-vserver/sysv/Makefile-files new file mode 100644 index 0000000..6601c4e --- /dev/null +++ b/util-vserver/sysv/Makefile-files @@ -0,0 +1,57 @@ +## $Id$ -*- makefile -*- + +## Copyright (C) 2003 Enrico Scholz +## +## This program is free software; you can redistribute it and/or modify +## it under the terms of the GNU General Public License as published by +## the Free Software Foundation; either version 2, or (at your option) +## any later version. +## +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software +## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +## + +sysv_XTRAS = sysv/rebootmgr.subst \ + sysv/v_gated.subst \ + sysv/v_httpd.subst \ + sysv/v_named.subst \ + sysv/v_portmap.subst \ + sysv/v_sendmail.subst \ + sysv/v_smb.subst \ + sysv/v_sshd.subst \ + sysv/v_xinetd.subst \ + sysv/vservers.subst + +sysv_GENSCRPTS = sysv/rebootmgr \ + sysv/v_gated \ + sysv/v_httpd \ + sysv/v_named \ + sysv/v_portmap \ + sysv/v_sendmail \ + sysv/v_smb \ + sysv/v_sshd \ + sysv/v_xinetd \ + sysv/vservers + +sysv_SCRPTS = $(sysv_GENSCRPTS) + +sysv_CFG = sysv/vservers.conf + + +sysv/%: sysv/%.subst + @mkdir -p $$(dirname '$@') + sed -s 's!/usr/lib/util-vserver!$(pkglibdir)!g; \ + s!^USR_SBIN=/usr/sbin$$!USR_SBIN=$(sbindir)!g' '$<' >'$@.tmp' + if cmp -s '$<' '$@.tmp'; then \ + cp -p '$<' '$@'; \ + else \ + mv -f '$@.tmp' '$@'; \ + fi + -rm -f '$@.tmp' + @chmod a-w '$@'