1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007-2012 IPFire Team <info@ipfire.org> #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
29 DL_FILE = $(THISAPP).tar.bz2
31 DL_FROM = $(URL_IPFIRE)
32 DIR_APP = $(DIR_SRC)/$(THISAPP)
33 TARGET = $(DIR_INFO)/$(THISAPP)
42 CACHEDIR=/var/cache/vdr \
44 INCDIR=/usr/include/vdr \
46 LOCDIR=/usr/share/locale \
47 MANDIR=/usr/share/man \
48 RESDIR=/usr/share/vdr \
53 CXXFLAGS="$(CXXFLAGS)"
55 ###############################################################################
57 ###############################################################################
61 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
63 $(DL_FILE)_MD5 = c7928bff45fa1c0e6dadf2c0a5adf94b
67 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
69 download : $(patsubst %,$(DIR_DL)/%,$(objects))
71 md5 : $(subst %,%_MD5,$(objects))
76 ###############################################################################
77 # Downloading, checking, md5sum
78 ###############################################################################
80 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
83 $(patsubst %,$(DIR_DL)/%,$(objects)) :
86 $(subst %,%_MD5,$(objects)) :
89 ###############################################################################
90 # Installation Details
91 ###############################################################################
93 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
95 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
97 # Compile main package.
98 cd $(DIR_APP) && make $(MAKE_OPTIONS) $(MAKETUNING) vdr include-dir
100 # Compile bundled plugins.
101 #cd $(DIR_APP) && for plugin in ...; do \
102 # make $(MAKETUNING) -C PLUGINS/src/$$plugin VDRDIR=$(DIR_APP) \
103 # CFLAGS="$(CFLAGS) -I$(DIR_APP)/include" \
104 # CXXFLAGS="$(CXXFLAGS) -I$(DIR_APP)/include" \
105 # PLGCFG=$(DIR_APP)/plugins.mk all || exit 1; \
108 # Install main package.
109 cd $(DIR_APP) && make install-bin install-dirs install-includes $(MAKE_OPTIONS)
110 mv -v /usr/bin/vdr /usr/sbin/vdr
112 sed -e "s/VDR_PLUGIN_VERSION/$(VER)/" \
113 < $(DIR_SRC)/config/vdr/runvdr > /usr/sbin/runvdr
114 chmod 755 /usr/sbin/runvdr
116 # Install configuration.
118 mkdir -pv /etc/sysconfig/vdr-plugins.d
119 cd $(DIR_APP) && install -m 644 *.conf /etc/vdr
121 # Install start links and backup include file.
122 ln -sf ../init.d/vdr /etc/rc.d/rc3.d/S60vdr
123 ln -sf ../init.d/vdr /etc/rc.d/rc0.d/K40vdr
124 ln -sf ../init.d/vdr /etc/rc.d/rc6.d/K40vdr
125 install -v -m 644 $(DIR_SRC)/config/backup/includes/vdr \
126 /var/ipfire/backup/addons/includes/vdr