e1cbaa1154240c8701a4c09b8b4aa3daf321750b
[util-vserver.git] / distrib / Makefile.am
1 ## $Id: Makefile.am 2360 2006-11-01 19:23:24Z hollow $
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                         misc/environment \
30                         sample.conf
31
32 nobase_distrib_SCRIPTS  =  redhat/initpost \
33                            redhat/initpre \
34                            redhat/rc.sysinit \
35                            gentoo/initpost \
36                            gentoo/initpre \
37                            gentoo/init-vserver.sh
38
39 nobase_distrib_DATA     =  defaults/devs \
40                            defaults/apt.conf \
41                            defaults/rpm/macros \
42                            defaults/apt/apt.conf \
43                            template/initpost template/initpre \
44                            rh9/apt/rpmpriorities    rh9/pkgs/01    rh9/pkgs/02 \
45                            fc1/apt/rpmpriorities    fc1/pkgs/01    fc1/pkgs/02 \
46                            fc2/apt/rpmpriorities    fc2/pkgs/01    fc2/pkgs/02 \
47                            fc3/apt/rpmpriorities    fc3/pkgs/01    fc3/pkgs/02    fc3/pkgs/03 \
48                            fc3/yum/yum.conf $(wildcard fc3/yum.repos.d/*.repo) \
49                            $(wildcard fc3/rpmlist.d/*.lst) $(wildcard fc3/rpmlist.d/*.opt) \
50                            fc4/apt/rpmpriorities    fc4/pkgs/01    fc4/pkgs/02    fc4/pkgs/03 \
51                            fc4/yum/yum.conf $(wildcard fc4/yum.repos.d/*.repo) \
52                            $(wildcard fc4/rpmlist.d/*.lst) $(wildcard fc4/rpmlist.d/*.opt) \
53                            fc5/apt/rpmpriorities    fc5/pkgs/01    fc5/pkgs/02    fc5/pkgs/03 \
54                            fc5/yum/yum.conf $(wildcard fc5/yum.repos.d/*.repo) \
55                            $(wildcard fc5/rpmlist.d/*.lst) $(wildcard fc5/rpmlist.d/*.opt) \
56                            fc6/apt/rpmpriorities    fc6/pkgs/01    fc6/pkgs/02    fc6/pkgs/03 \
57                            fc6/yum/yum.conf $(wildcard fc6/yum.repos.d/*.repo) \
58                            $(wildcard fc6/rpmlist.d/*.lst) $(wildcard fc6/rpmlist.d/*.opt) \
59                            centos4/pkgs/01 centos4/pkgs/02 centos4/pkgs/03 \
60                            centos4/yum/yum.conf $(wildcard centos4/yum.repos.d/*.repo) \
61                            suse91/apt/rpmpriorities suse91/pkgs/01 suse91/pkgs/02 \
62                            suse91/rpm/macros
63
64 nobase_confdistrib_DATA =  rh9/apt/sources.list \
65                            fc1/apt/sources.list \
66                            fc2/apt/sources.list \
67                            fc3/apt/sources.list \
68                            fc4/apt/sources.list \
69                            fc5/apt/sources.list \
70                            fc6/apt/sources.list \
71                            suse91/apt/sources.list
72
73 AM_INSTALLCHECK_STD_OPTIONS_EXEMPT \
74                         =  $(nobase_distrib_SCRIPTS)
75
76 EXTRA_DIST              =  $(nobase_distrib_DATA) \
77                            $(nobase_distrib_SCRIPTS) \
78                            $(nobase_confdistrib_DATA) \
79                            $(defaults_DATA)
80
81 redhat_style            =  rh9 fc1 fc2 fc3 fc4 fc5 fc6 centos4
82
83 install-exec-hook:      install-notify-xtra
84 install-data-hook:      install-data-xtras
85
86 install-data-xtras:
87                         l="$(redhat_style)"; for i in $$l; do \
88                                 ln -sf ../redhat/initpost $(DESTDIR)$(distribdir)/$$i/ && \
89                                 ln -sf ../redhat/initpre  $(DESTDIR)$(distribdir)/$$i/; \
90                         done
91                         $(mkinstalldirs) $(DESTDIR)$(confdir) \
92                                 $(DESTDIR)$(confdistribdir)/.common/pubkeys \
93                                 $(DESTDIR)$(confdefaultsdir) \
94                                 $(DESTDIR)$(confdefaultsdir)/apps/vunify/hash \
95                                 $(DESTDIR)$(confdefaultsdir)/files
96
97
98 include $(top_srcdir)/m4/install-notify.am