use $(LIBENSCVECTOR) instead of libensc_vector.a
[util-vserver.git] / util-vserver / distrib / Makefile.am
1 ## $Id$
2
3 ## Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
4 ##  
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; version 2 of the License.
8 ##  
9 ## This program is distributed in the hope that it will be useful,
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 ## GNU General Public License for more details.
13 ##  
14 ## You should have received a copy of the GNU General Public License
15 ## along with this program; if not, write to the Free Software
16 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
18 confdir =               $(sysconfdir)/vservers
19 defaultsdir =           $(pkglibdir)/defaults
20 distribdir =            $(pkglibdir)/distributions
21 confdistribdir =        $(confdir)/.distributions
22 confdefaultsdir =       $(confdir)/.defaults
23
24 defaults_DATA =         misc/debootstrap.uri \
25                         misc/fstab \
26                         misc/mtab \
27                         misc/vprocunhide-files \
28                         misc/vunify-exclude
29
30 nobase_distrib_SCRIPTS  =  redhat/initpost \
31                            redhat/initpre \
32                            redhat/rc.sysinit
33
34 nobase_distrib_DATA     =  defaults/devs \
35                            defaults/apt.conf \
36                            defaults/rpm/macros \
37                            defaults/apt/apt.conf \
38                            template/initpost template/initpre \
39                            rh9/apt/rpmpriorities    rh9/pkgs/01    rh9/pkgs/02 \
40                            fc1/apt/rpmpriorities    fc1/pkgs/01    fc1/pkgs/02 \
41                            fc2/apt/rpmpriorities    fc2/pkgs/01    fc2/pkgs/02 \
42                            fc3/apt/rpmpriorities    fc3/pkgs/01    fc3/pkgs/02    fc3/pkgs/03 \
43                            fc3/yum/yum.conf $(wildcard fc3/yum.repos.d/fedora*.repo) \
44                            $(wildcard fc3/rpmlist.d/*.lst) $(wildcard fc3/rpmlist.d/*.opt) \
45                            suse91/apt/rpmpriorities suse91/pkgs/01 suse91/pkgs/02 \
46                            suse91/rpm/macros
47
48 nobase_confdistrib_DATA =  rh9/apt/sources.list \
49                            fc1/apt/sources.list \
50                            fc2/apt/sources.list \
51                            fc3/apt/sources.list \
52                            suse91/apt/sources.list
53
54 AM_INSTALLCHECK_STD_OPTIONS_EXEMPT \
55                         =  $(nobase_distrib_SCRIPTS)
56
57 EXTRA_DIST              =  $(nobase_distrib_DATA) \
58                            $(nobase_distrib_SCRIPTS) \
59                            $(nobase_confdistrib_DATA) \
60                            $(defaults_DATA)
61
62 redhat_style            =  rh9 fc1 fc2
63
64
65 install-data-hook:
66                         l="$(redhat_style)"; for i in $$l; do \
67                                 ln -sf ../redhat/initpost $(DESTDIR)$(distribdir)/$$i/ && \
68                                 ln -sf ../redhat/initpre  $(DESTDIR)$(distribdir)/$$i/; \
69                         done
70                         $(mkinstalldirs) $(DESTDIR)$(confdir) \
71                                 $(DESTDIR)$(confdistribdir)/.common/pubkeys \
72                                 $(DESTDIR)$(confdefaultsdir) \
73                                 $(DESTDIR)$(confdefaultsdir)/apps/vunify/hash \
74                                 $(DESTDIR)$(confdefaultsdir)/files