1 ######################################################################
4 # L7VSD: Linux Virtual Server for Layer7 Load Balancing
5 # Copyright (C) 2005 NTT COMWARE Corporation.
7 # This program is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU Lesser General Public
9 # License as published by the Free Software Foundation; either
10 # version 2.1 of the License, or (at your option) any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # Lesser General Public License for more details.
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with this library; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
22 ######################################################################
36 docdir = ${datadir}/doc/${PACKAGE}-${VERSION}
47 ultramonkey-l7.spec.in
49 l7vsadm_sockdir = @l7vsadm_sockdir@
50 l7vs_logdir = @l7vs_logdir@
52 ultramonkey-l7.spec: ultramonkey-l7.spec.in VERSION
54 uml7version=`echo $(PACKAGE_VERSION) | sed -e 's/-.*//;'` ;\
55 uml7patchlv=`echo $(PACKAGE_VERSION) | sed -e 's/^[^-]*//; s/-//;'` ;\
56 cat $< |sed -e "s/@uml7version@/$$uml7version/g; s/@uml7patchlv@/$$uml7patchlv/g;" > $@ ; )
60 echo `./genvers.sh` $< > $@.new ;\
64 (rm -f $(top_srcdir)/VERSION ;\
65 autoreconf -ifv $(top_srcdir) ;\
69 rpmbuild -ta $(DIST_ARCHIVES)
72 mkdir -p $(DESTDIR)$(l7vsadm_sockdir)
73 mkdir -p $(DESTDIR)$(l7vs_logdir)
76 find $(distdir) -type f \( -name '*.c' -o -name '*.cpp' \) -print0 \
77 | xargs -0 perl $(distdir)/logger/extract_log \
78 > extract_log.out 2>/dev/null
79 @(dupcount=`grep -c '^LOG_CAT_[0-9A-Z_]* (duplicate)' extract_log.out` || true ; \
80 if test x0 != x$$dupcount ;\
82 echo "ERROR: Duplicated log ID found! " ;\
83 echo -n "ERROR: Check marked line as 'DUPLICATE' in " ;\
84 echo "extract_log.out" ;\
85 echo "=====================================================";\
86 grep 'DUPLICATE' extract_log.out ;\
87 echo "=====================================================";\
90 rm -f extract_log.out ;\
93 distcheck-hook: extract_log.check