# Copyright (C) 2003,2004,2005,2006 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. # python_vserverimpl_la_SOURCES = python/vserverimpl.c python_vserverimpl_la_LIBADD = -lvserver python_vserverimpl_la_CFLAGS = -Wno-redundant-decls -I$(top_srcdir)/src $(PYTHON_INCLUDES) python_vserverimpl_la_LDFLAGS = -module -avoid-version src_vip6_autod_SOURCES = src/vip6-autod.c src_vip6_autod_LDADD = -lvserver -lnl src_vsh_SOURCES = src/vsh.c man_MANS = man/vsh.8 pyexec_LTLIBRARIES = python/vserverimpl.la pyexec_DATA = python/vserver.py \ python/cpulimit.py sbin_SCRIPTS = python/disklimit \ scripts/vuseradd \ scripts/vuserdel sbin_PROGRAMS = src/vsh sysv_SCRIPTS = if ENSC_HAVE_LIBNL sbin_PROGRAMS += src/vip6-autod sysv_SCRIPTS += sysv/vip6-autod endif crondir = $(sysconfdir)/cron.d logrotatedir = $(sysconfdir)/logrotate.d install-data-hook: install-fix-script-paths fix_SCRPTS = $(addprefix $(sbindir)/, $(notdir $(sbin_SCRIPTS))) \ $(addprefix $(sysvdir)/, $(notdir $(sysv_SCRIPTS))) install-fix-script-paths: test "$(UV_PKGLIBDIR)" = "/usr/lib/util-vserver" || \ for i in $(fix_SCRPTS); do \ f="$(DESTDIR)$$i"; \ $(SED) -e 's!/usr/lib/util-vserver!$(UV_PKGLIBDIR)!g' "$$f" > "$$f.tmp"; \ cmp -s "$$f.tmp" "$$f" || cat "$$f.tmp" > "$$f"; \ rm -f "$$f.tmp"; \ done