added default apt.conf
[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 confdefaultsinitdir     =  $(confdefaultsdir)/init
24
25 defaults_DATA           =  misc/mtab
26
27 nobase_distrib_SCRIPTS  =  redhat/initpost
28
29 nobase_distrib_DATA     =  defaults/devs \
30                            defaults/rpm/macros \
31                            defaults/apt/apt.conf \
32                            rh9/apt/rpmpriorities rh9/pkgs/01 rh9/pkgs/02 \
33                            fc1/apt/rpmpriorities fc1/pkgs/01 fc1/pkgs/02
34
35 nobase_confdistrib_DATA =  rh9/apt/sources.list \
36                            fc1/apt/sources.list
37
38 AM_INSTALLCHECK_STD_OPTIONS_EXEMPT \
39                         =  $(nobase_distrib_SCRIPTS)
40
41 EXTRA_DIST              =  $(nobase_distrib_DATA) \
42                            $(nobase_distrib_SCRIPTS) \
43                            $(nobase_confdistrib_DATA) \
44                            $(defaults_DATA)
45
46 redhat_style            =  rh9 fc1
47
48
49 install-data-hook:
50                         l="$(redhat_style)"; for i in $$l; do \
51                                 ln -s ../redhat/initpost $(DESTDIR)$(distribdir)/$$i/; \
52                         done
53                         $(mkinstalldirs) $(DESTDIR)$(confdir) $(DESTDIR)$(confdefaultsdir) \
54                                 $(DESTDIR)$(confdefaultsinitdir)