1 ## $Id$ -*- makefile -*-
3 ## Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
5 ## This program is free software; you can redistribute it and/or modify
6 ## it under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation; either version 2, or (at your option)
10 ## This program is distributed in the hope that it will be useful,
11 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ## GNU General Public License for more details.
15 ## You should have received a copy of the GNU General Public License
16 ## along with this program; if not, write to the Free Software
17 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 AM_INSTALLCHECK_STD_OPTIONS_EXEMPT += \
24 sysv_src_SCRPTS = sysv/rebootmgr \
26 sysv/vservers-default \
28 sysv_gen_SCRPTS = sysv/v_gated \
36 sysv_conf_DTA = sysv/vservers.conf
38 sysconf_DATA += $(sysv_conf_DTA)
39 EXTRA_DIST += sysv/v_gated.subst \
42 sysv/v_portmap.subst \
43 sysv/v_sendmail.subst \
50 initrd_SCRIPTS += $(sysv_src_SCRPTS) \
53 CLEANFILES += $(sysv_gen_SCRPTS)
55 sysv_SUBSTRULE = s!/usr/lib/util-vserver!$(pkglibdir)!g; \
56 s!^USR_SBIN=/usr/sbin$$!USR_SBIN=$(sbindir)!g; \
57 s!^DEFAULT_VSERVERDIR=/vservers$$!DEFAULT_VSERVERDIR=$(vserverdir)!g
60 @mkdir -p $$(dirname '$@')
61 sed -e '$(sysv_SUBSTRULE)' '$<' >'$@.tmp'
63 @if cmp -s '$<' '$@.tmp'; then \
66 mv -f '$@.tmp' '$@'; \