Replace file with h2ext for the template build method.
[util-vserver.git] / 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.mirror \
25                         misc/debootstrap.uri \
26                         misc/fstab \
27                         misc/mtab \
28                         misc/vprocunhide-files \
29                         misc/vunify-exclude \
30                         misc/environment \
31                         misc/context.start \
32                         misc/h2ext.desc
33
34 nobase_distrib_SCRIPTS  =  redhat/initpost \
35                            redhat/initpre \
36                            redhat/rc.sysinit \
37                            gentoo/initpost \
38                            gentoo/initpre \
39                            etch/initpost
40
41 nobase_distrib_DATA     =  defaults/devs \
42                            defaults/apt.conf \
43                            defaults/rpm/macros \
44                            defaults/apt/apt.conf \
45                            template/initpost template/initpre \
46                            rh9/apt/rpmpriorities    rh9/pkgs/01    rh9/pkgs/02 \
47                            fc1/apt/rpmpriorities    fc1/pkgs/01    fc1/pkgs/02 \
48                            fc2/apt/rpmpriorities    fc2/pkgs/01    fc2/pkgs/02 \
49                            fc3/apt/rpmpriorities    fc3/pkgs/01    fc3/pkgs/02    fc3/pkgs/03 \
50                            fc3/yum/yum.conf $(wildcard fc3/yum.repos.d/*.repo) \
51                            $(wildcard fc3/rpmlist.d/*.lst) $(wildcard fc3/rpmlist.d/*.opt) \
52                            fc4/apt/rpmpriorities    fc4/pkgs/01    fc4/pkgs/02    fc4/pkgs/03 \
53                            fc4/yum/yum.conf $(wildcard fc4/yum.repos.d/*.repo) \
54                            $(wildcard fc4/rpmlist.d/*.lst) $(wildcard fc4/rpmlist.d/*.opt) \
55                            fc5/apt/rpmpriorities    fc5/pkgs/01    fc5/pkgs/02    fc5/pkgs/03 \
56                            fc5/yum/yum.conf $(wildcard fc5/yum.repos.d/*.repo) \
57                            $(wildcard fc5/rpmlist.d/*.lst) $(wildcard fc5/rpmlist.d/*.opt) \
58                            fc6/apt/rpmpriorities    fc6/pkgs/01    fc6/pkgs/02    fc6/pkgs/03 \
59                            fc6/yum/yum.conf $(wildcard fc6/yum.repos.d/*.repo) \
60                            $(wildcard fc6/rpmlist.d/*.lst) $(wildcard fc6/rpmlist.d/*.opt) \
61                            f7/apt/rpmpriorities    f7/pkgs/01    f7/pkgs/02    f7/pkgs/03 \
62                            f7/yum/yum.conf $(wildcard f7/yum.repos.d/*.repo) \
63                            $(wildcard f7/rpmlist.d/*.lst) $(wildcard f7/rpmlist.d/*.opt) \
64                            centos4/pkgs/01 centos4/pkgs/02 centos4/pkgs/03 \
65                            centos4/yum/yum.conf $(wildcard centos4/yum.repos.d/*.repo) \
66                            centos5/pkgs/01 centos5/pkgs/02 centos5/pkgs/03 \
67                            centos5/yum/yum.conf $(wildcard centos5/yum.repos.d/*.repo) \
68                            suse91/apt/rpmpriorities suse91/pkgs/01 suse91/pkgs/02 \
69                            suse91/rpm/macros \
70                            gentoo/init-vserver.sh gentoo/net.vserver \
71                            gentoo/reboot.sh gentoo/shutdown.sh \
72                            etch/vserver-config.sh
73
74 nobase_confdistrib_DATA =  rh9/apt/sources.list \
75                            fc1/apt/sources.list \
76                            fc2/apt/sources.list \
77                            fc3/apt/sources.list \
78                            fc4/apt/sources.list \
79                            fc5/apt/sources.list \
80                            fc6/apt/sources.list \
81                            f7/apt/sources.list \
82                            suse91/apt/sources.list
83
84 AM_INSTALLCHECK_STD_OPTIONS_EXEMPT \
85                         =  $(nobase_distrib_SCRIPTS)
86
87 EXTRA_DIST              =  $(nobase_distrib_DATA) \
88                            $(nobase_distrib_SCRIPTS) \
89                            $(nobase_confdistrib_DATA) \
90                            $(defaults_DATA)
91
92 redhat_style            =  rh9 fc1 fc2 fc3 fc4 fc5 fc6 f7 centos4 centos5
93
94 install-exec-hook:      install-notify-xtra
95 install-data-hook:      install-data-xtras
96
97 install-data-xtras:
98                         l="$(redhat_style)"; for i in $$l; do \
99                                 ln -sf ../redhat/initpost $(DESTDIR)$(distribdir)/$$i/ && \
100                                 ln -sf ../redhat/initpre  $(DESTDIR)$(distribdir)/$$i/; \
101                         done
102                         $(mkinstalldirs) $(DESTDIR)$(confdir) \
103                                 $(DESTDIR)$(confdistribdir)/.common/pubkeys \
104                                 $(DESTDIR)$(confdefaultsdir) \
105                                 $(DESTDIR)$(confdefaultsdir)/apps/vunify/hash \
106                                 $(DESTDIR)$(confdefaultsdir)/files
107
108
109 include $(top_srcdir)/m4/install-notify.am