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 \
27 sysv/vservers-legacy \
29 sysv_gen_SCRPTS = sysv/v_gated \
37 sysv_conf_DTA = sysv/vservers.conf
39 EXTRA_DIST += sysv/v_gated.subst \
42 sysv/v_portmap.subst \
43 sysv/v_sendmail.subst \
51 sysconf_DATA += $(sysv_conf_DTA)
52 initrd_SCRIPTS += $(sysv_src_SCRPTS) \
56 CLEANFILES += $(sysv_gen_SCRPTS)
58 sysv_SUBSTRULE = s!/usr/lib/util-vserver!$(pkglibdir)!g; \
59 s!^USR_SBIN=/usr/sbin$$!USR_SBIN=$(sbindir)!g; \
60 s!^DEFAULT_VSERVERDIR=/vservers$$!DEFAULT_VSERVERDIR=$(vserverdir)!g
63 @mkdir -p $$(dirname '$@')
64 sed -e '$(sysv_SUBSTRULE)' '$<' >'$@.tmp'
66 @if cmp -s '$<' '$@.tmp'; then \
69 mv -f '$@.tmp' '$@'; \