Commit 2072b7a7bd1fd84dcb484dfb185d030b8bb7ddf0

Authored by Silvan Calarco
1 parent 51cf5cacb6
Exists in master

Remove most obsoleted autotools files

Showing 9 changed files with 1 additions and 467 deletions Side-by-side Diff

1   -*.o
2   -Makefile
3   -Makefile.in
4   -autom4te.cache/
5   -config.log
6   -config.status
7   -configure
8   -aclocal.m4
9   -src/distromatic
10   -src/distroquery
11   -src/include/stamp-h1
12   -src/.deps
13 1 build/
1   -# This file is part of `distromatic', the QiLinux RPM tool for the distribution
2   -# Copyright (C) 2006 by Davide Madrisan <davide.madrisan@gmail.com>
3   -#
4   -# This program is free software; you can redistribute it and/or modify it under
5   -# the terms of version 2 of the GNU General Public License as published by the
6   -# Free Software Foundation.
7   -#
8   -# This program is distributed in the hope that it will be useful, but WITHOUT
9   -# ANY WARRANTY, to the extent permitted by law; without even the implied
10   -# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11   -# See the GNU General Public License for more details.
12   -#
13   -# You should have received a copy of the GNU General Public License along with
14   -# this program; if not, write to the Free Software Foundation, Inc.,
15   -# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
16   -
17   -auxdir = @ac_aux_dir@
18   -
19   -AUTOMAKE_OPTIONS = 1.8 dist-bzip2 foreign nostdinc no-dist-gzip
20   -
21   -SUBDIRS = po $(auxdir) html src src/include
22   -
23   -EXTRA_DIST = config/config.rpath AUTHORS COPYING ChangeLog VERSION distromatic.conf
24   -
25   -install-data-local:
26   - $(mkdir_p) $(DESTDIR)$(sysconfdir)
27   - $(INSTALL_DATA) $(srcdir)/distromatic.conf $(DESTDIR)${sysconfdir}/distromatic.conf
28   -
29   -dist-rpm: dist-bzip2
30   - @rpm_sourcedir=`rpm --eval=%{_sourcedir} 2>/dev/null`;\
31   - [ -d "$$rpm_sourcedir" ] || \
32   - { echo "directory not found: $$rpm_sourcedir" 1>&2; exit 1; };\
33   - mv -f $(distdir).tar.bz2 $$rpm_sourcedir || exit 1; \
34   - echo "Created tarball \`$$rpm_sourcedir/$(distdir).tar.bz2'."
35   -
36   -ACLOCAL_AMFLAGS = -I m4
37   -
38   -check-gettext:
39   - @if test x$(USE_NLS) != "xyes" ; then echo "Missing gettext. Rerun configure and check for" \
40   - "'checking whether to use NLS... yes'!" ; exit 1 ; fi
41   -
42   -update-po: check-gettext
43   - @find $(srcdir)/src/ -name "*.cpp" -print | sort > $(srcdir)/po/POTFILES.in.2 ; \
44   - if diff $(srcdir)/po/POTFILES.in $(srcdir)/po/POTFILES.in.2 >/dev/null 2>&1 ; then \
45   - rm -f $(srcdir)/po/POTFILES.in.2 ; \
46   - else \
47   - mv $(srcdir)/po/POTFILES.in.2 $(srcdir)/po/POTFILES.in ; \
48   - fi
49   - cd po && $(MAKE) $(AM_MAKEFLAGS) update-po
50   -
51   -update-gmo: check-gettext
52   - cd po && $(MAKE) $(AM_MAKEFLAGS) update-gmo
53   -
54   -force-update-gmo: check-gettext
55   - touch po/*.po
56   - cd po && $(MAKE) $(AM_MAKEFLAGS) update-gmo
57   -
58   -force-update-gmo-%: check-gettext
59   - @language=`echo $@ | sed s/force-update-gmo-//` ; \
60   - if test ! -f po/$$language.po ; then echo "file po/$$language.po does not exist" ; exit 1 ; fi ; \
61   - touch po/$$language.po ; \
62   - cd po && $(MAKE) $(AM_MAKEFLAGS) update-gmo
63   -
64   -.PHONY: check-gettext update-po update-gmo force-update-gmo
1   -VERSION = 1.4.6
1   -#!/bin/sh
2   -aclocal
3   -autoheader
4   -automake --add-missing
5   -autoconf
6   -./configure --prefix=/usr --sysconfdir=/etc --datadir=/usr/share $@
configure.ac
1   -dnl A tool for maintaining an RPM based distribution
2   -dnl
3   -dnl Copyright 2006 (C) Davide Madrisan <davide.madrisan@gmail.com>
4   -dnl Copyright 2007-2014 (C) Silvan Calarco <silvan.calarco@mambasoft.it>
5   -dnl
6   -dnl This program is free software; you can redistribute it and/or modify it under
7   -dnl the terms of version 2 of the GNU General Public License as published by the
8   -dnl Free Software Foundation.
9   -dnl
10   -dnl This program is distributed in the hope that it will be useful, but WITHOUT
11   -dnl ANY WARRANTY, to the extent permitted by law; without even the implied
12   -dnl warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13   -dnl See the GNU General Public License for more details.
14   -dnl
15   -dnl You should have received a copy of the GNU General Public License along with
16   -dnl this program; if not, write to the Free Software Foundation, Inc.,
17   -dnl 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
18   -
19   -dnl Process this file with autoconf to produce a configure script.
20   -
21   -
22   -dnl Initialization
23   -dnl ------------------------------------------------------------
24   -m4_define(PROG_NAME, [distromatic])
25   -m4_define(PROG_BUGREPORT, [silvan.calarco@mambasoft.it])
26   -m4_define(PROG_VERSION,dnl
27   -regexp(m4_include(VERSION),[.*=[ \t]*\([.0-9A-Za-z]+\)],[\1]))
28   -
29   -AC_PREREQ(2.59)
30   -AC_INIT([PROG_NAME],[PROG_VERSION],[PROG_BUGREPORT],[PROG_NAME])
31   -
32   -AC_CONFIG_SRCDIR(src/distromatic.c)
33   -AC_CONFIG_HEADERS(src/include/config.h:src/include/config.h.in)
34   -AC_COPYRIGHT(dnl
35   -[Copyright 2006 by Davide Madrisan <davide.madrisan@gmail.com>
36   -])
37   -
38   -dnl set `ac_aux_dir' = 'config'
39   -dnl ------------------------------------------------------------
40   -AC_CONFIG_AUX_DIR(config)
41   -AC_SUBST(ac_aux_dir)
42   -
43   -dnl Just to display the version number of this program
44   -dnl ------------------------------------------------------------
45   -AC_MSG_CHECKING([for PROG_NAME version])
46   -AC_MSG_RESULT([PROG_VERSION])
47   -
48   -dnl Set and display default target architecture
49   -dnl ------------------------------------------------------------
50   -AC_MSG_CHECKING([for the default target architecture])
51   -DEFAULT_ARCH="i586"
52   -AC_SUBST(DEFAULT_ARCH)
53   -AC_MSG_RESULT([$DEFAULT_ARCH])
54   -
55   -dnl Compute the canonical build-system type variable, `build' and
56   -dnl its three individual parts `build_cpu', `build_vendor', `build_os'
57   -dnl ------------------------------------------------------------
58   -AC_CANONICAL_TARGET
59   -
60   -AM_INIT_AUTOMAKE([1.7 foreign dist-bzip2 nostdinc])
61   -
62   -AM_GNU_GETTEXT([external])
63   -
64   -AC_REVISION($Revision: 1.4 $)
65   -
66   -dnl Determine a C compiler to use. Define `CFLAGS', `EXEEXT', `OBJEXT'
67   -dnl Define `CFLAGS' to `-g -O2' for the GNU C compiler, or `-g' for
68   -dnl other compilers.
69   -dnl If the C compiler is not in ANSI C mode by default, try to add an
70   -dnl option to output variable `CC' to make it so.
71   -dnl ------------------------------------------------------------
72   -AC_PROG_CC
73   -if test "x$ac_cv_prog_cc_stdc" = xno; then
74   - AC_MSG_ERROR([$CC is not an ANSI C compiler.])
75   -fi
76   -AM_PROG_CC_C_O
77   -AC_ISC_POSIX
78   -#AC_PROG_GCC_TRADITIONAL
79   -
80   -#CFLAGS+=-O1
81   -SUPPORTED_CFLAGS=
82   -
83   -dnl cc_TRY_CFLAGS (CFLAGS, [ACTION-IF-WORKS], [ACTION-IF-FAILS])
84   -dnl ------------------------------------------------------------
85   -dnl Checks if $CC supports a given set of CFLAGS.
86   -dnl If supported, the current CFLAGS is appended to SUPPORTED_CFLAGS
87   -AC_DEFUN([cc_TRY_CFLAGS],
88   - [AC_MSG_CHECKING([whether compiler accepts $1])
89   - ac_save_CFLAGS="$CFLAGS"
90   - CFLAGS="$CFLAGS $1"
91   - AC_COMPILE_IFELSE([AC_LANG_SOURCE([
92   - [[int x;]],
93   - [ac_cv_try_cflags_ok=yes
94   - SUPPORTED_CFLAGS="$SUPPORTED_CFLAGS $1"],
95   - [ac_cv_try_cflags_ok=no]])])
96   - CFLAGS="$ac_save_CFLAGS"
97   - AC_MSG_RESULT([$ac_cv_try_cflags_ok])
98   - if test x"$ac_cv_try_cflags_ok" = x"yes"; then
99   - ifelse([$2],[],[:],[$2])
100   - else
101   - ifelse([$3],[],[:],[$3])
102   - fi
103   -])[]dnl @end [cc_TRY_CFLAGS]
104   -
105   -cc_TRY_CFLAGS([-Wall])
106   -cc_TRY_CFLAGS([-W])
107   -cc_TRY_CFLAGS([-Wmissing-prototypes])
108   -cc_TRY_CFLAGS([-Wstrict-prototypes])
109   -cc_TRY_CFLAGS([-Wshadow])
110   -#cc_TRY_CFLAGS([-Wunreachable-code])
111   -
112   -AC_SUBST([CFLAGS], ["$CFLAGS $SUPPORTED_CFLAGS"])
113   -
114   -dnl Check if C the compiler does not fully support the ANSI C qualifier
115   -dnl `const'.
116   -dnl ------------------------------------------------------------
117   -AC_C_CONST
118   -
119   -AC_LANG([C])
120   -
121   -dnl Define `WORDS_BIGENDIAN' if a big-endian architecture is found
122   -dnl AC_C_BIGENDIAN ([ACTION-IF-TRUE], [ACTION-IF-FALSE], [ACTION-IF-UNKNOWN])
123   -dnl The default for ACTION-IF-TRUE is to define `WORDS_BIGENDIAN'.
124   -dnl The default for ACTION-IF-FALSE is to do nothing.
125   -dnl And finally, the default for ACTION-IF-UNKNOWN is to abort configure and tell
126   -dnl the installer which variable he should preset to bypass this test.
127   -dnl ------------------------------------------------------------
128   -AC_C_BIGENDIAN
129   -
130   -dnl Check for standard header files
131   -dnl ------------------------------------------------------------
132   -AC_HEADER_STDC
133   -AC_HEADER_TIME
134   -
135   -dnl Check for library functions for portability issues
136   -dnl ------------------------------------------------------------
137   -AC_CHECK_DECLS([getopt])
138   -dnl If the `malloc' works correctly (`malloc (0)' returns a valid pointer),
139   -dnl define `HAVE_MALLOC'
140   -AC_CHECK_FUNCS([memcpy strchr])
141   -AC_FUNC_MALLOC
142   -
143   -dnl Check for needed header files, libraries and tools
144   -dnl ------------------------------------------------------------
145   -AC_CHECK_HEADERS(dirent.h ndir.h sys/ndir.h, break)
146   -AC_CHECK_HEADERS(errno.h)
147   -
148   -dnl Check for zlib library and header files
149   -AC_CHECK_HEADER([zlib.h],
150   - AC_DEFINE(HAVE_ZLIB_H,1,
151   - [Define to 1 if you have the <zlib.h> header file.]),
152   - [AC_MSG_ERROR([Can't find zlib.h in your system])])
153   -AC_CHECK_LIB(z,gzopen, [ZLIB="-lz"],
154   - [AC_MSG_ERROR([Can't find libz library in your system])])
155   -LIBS="$LIBS $ZLIB"
156   -
157   -dnl Check for rpm tool and needed libraries
158   -AC_PATH_PROG(RPM_PATH,rpm,none)
159   -if test "$RPM_PATH" = "none"; then
160   - AC_MSG_ERROR([RPM executable was not found in your system])
161   -else
162   - AC_DEFINE_UNQUOTED([HAVE_RPM],1,[Define if RPM backend is available])
163   -
164   - dnl Check for RPM version
165   - AC_MSG_CHECKING(for RPM version)
166   - RPM_VERSION_RAW=`LANG= LC_ALL= $RPM_PATH --version | sed 's/^.* //'`
167   - RPM_VERSION_MAJOR=`echo $RPM_VERSION_RAW | cut -d. -f1`
168   - RPM_VERSION_MINOR=`echo $RPM_VERSION_RAW | cut -d. -f2`
169   - RPM_VERSION_MICRO=`echo $RPM_VERSION_RAW | cut -d. -f3`
170   - if test -z "$RPM_VERSION_MAJOR" -o -z "$RPM_VERSION_MINOR"; then
171   - AC_MSG_ERROR([can't parse RPM version])
172   - fi
173   - if test -z "$RPM_VERSION_MICRO"; then
174   - RPM_VERSION_MICRO=0
175   - fi
176   - AC_DEFINE_UNQUOTED([RPM_VERSION_MAJOR],$RPM_VERSION_MAJOR,[RPM major version])
177   - AC_DEFINE_UNQUOTED([RPM_VERSION_MINOR],$RPM_VERSION_MINOR,[RPM minor version])
178   - AC_DEFINE_UNQUOTED([RPM_VERSION_MICRO],$RPM_VERSION_MICRO,[RPM micro version])
179   - AC_DEFINE_UNQUOTED([RPM_VERSION],
180   - [((RPM_VERSION_MAJOR<<16)|(RPM_VERSION_MINOR<<8)|RPM_VERSION_MICRO)],
181   - [Define to the RPM version])
182   - AC_DEFINE_UNQUOTED([RPM_VERSION_RAW],"$RPM_VERSION_RAW",[RPM raw version])
183   - AC_MSG_RESULT($RPM_VERSION_RAW)
184   -
185   - dnl Check for RPM libraries and headers
186   -
187   - AC_CHECK_LIB(bz2,BZ2_bzopen, [],
188   - [AC_MSG_ERROR([Can't find libbz2 library in your system])])
189   - AC_CHECK_LIB(z,gzopen, [],
190   - [AC_MSG_ERROR([Can't find libz library in your system])])
191   - AC_CHECK_HEADERS(db1/db.h)
192   -
193   - CPPFLAGS="$CPPFLAGS -Doff64_t=__off64_t -I/usr/include/rpm"
194   - AC_CHECK_HEADER(rpm/rpmlib.h, [],
195   - [AC_MSG_ERROR([Can't find rpmlib.h in your system])])
196   -
197   - if test $RPM_VERSION_MAJOR -lt 4; then
198   - RPMLIBS="-lrpm -lz -lbz2 -lpopt"
199   - else
200   - AC_CHECK_LIB(rpmdb,rpmdbOpen,
201   - [RPMDBLIBS="-lrpmdb"],
202   - [RPMDBLIBS="-ldb-3.1"],
203   - [-lrpm -lrpmio -lz -lbz2 -lpopt])
204   - RPMLIBS="-lrpm $RPMDBLIBS -lrpmio -lz -lbz2 -lpopt"
205   - fi
206   - AC_MSG_CHECKING(for RPM libraries)
207   - AC_MSG_RESULT($RPMLIBS)
208   - AC_SUBST(RPMLIBS)
209   -fi
210   -LIBS="$LIBS $RPMLIBS"
211   -
212   -dnl Check for libiberty' library and header files
213   -AC_CHECK_HEADERS([libiberty/libiberty.h], [],
214   - [AC_MSG_ERROR([Can't find libiberty.h in your system,]
215   - [check http://www.gnu.org/software/binutils/binutils.html for libiberty])])
216   -AC_CHECK_LIB(iberty, freeargv,
217   - [LIBS="$LIBS -liberty"
218   - AC_DEFINE(HAVE_LIBIBERTY,1,
219   - [Define to 1 if you have the `libiberty' library (-liberty).])],
220   - [AC_MSG_ERROR([Can't find libiberty in your system,]
221   - [check http://www.gnu.org/software/binutils/binutils.html for libiberty])])
222   -
223   -dnl Check for sqlite library and header files
224   -PKG_CHECK_MODULES([SQLITE], [sqlite3])
225   -
226   -dnl Set the default `prefix' variable to `/usr'
227   -dnl ------------------------------------------------------------
228   -dnl AC_PREFIX_DEFAULT([/usr])
229   -
230   -dnl Generate the output files
231   -dnl ------------------------------------------------------------
232   -AC_CONFIG_FILES([Makefile po/Makefile.in]
233   - [config/Makefile]
234   - [html/Makefile]
235   - [html/index.php]
236   - [html/index.postnuke.php]
237   - [html/index.html]
238   - [src/Makefile]
239   - [src/include/Makefile]
240   - [src/include/globaldefs.h]
241   - [src/missing/Makefile])
242   -
243   -AC_OUTPUT
244   -
245   -cat <<_EOF
246   -
247   -Good - your configure finished. Start make now.
248   -
249   -_EOF
250   -
251   -dnl configure.ac ends here
src/Makefile.am
1   -# This file is part of `distromatic', a tool for RPM based repositories
2   -# Copyright (C) 2006 by Davide Madrisan <davide.madrisan@gmail.com>
3   -# Copyright (C) 2007 by Silvan Calarco <silvan.calarco@mambasoft.it>
4   -#
5   -# This program is free software; you can redistribute it and/or modify it under
6   -# the terms of version 2 of the GNU General Public License as published by the
7   -# Free Software Foundation.
8   -#
9   -# This program is distributed in the hope that it will be useful, but WITHOUT
10   -# ANY WARRANTY, to the extent permitted by law; without even the implied
11   -# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12   -# See the GNU General Public License for more details.
13   -#
14   -# You should have received a copy of the GNU General Public License along with
15   -# this program; if not, write to the Free Software Foundation, Inc.,
16   -# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
17   -
18   -AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include -rdynamic -Wall
19   -LDFLAGS += $(SQLITE_LIBS) -lpthread -rdynamic $(LTLIBINTL)
20   -cgidir := $(localstatedir)/www/cgi-bin
21   -wwwdir := $(localstatedir)/www/html
22   -localedir := $(datadir)/locale
23   -DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
24   -
25   -bin_PROGRAMS = distromatic
26   -cgi_PROGRAMS = distroquery
27   -
28   -distromatic_SOURCES = \
29   - buildtools.c \
30   - changelog.c \
31   - distromatic.c \
32   - functions.c \
33   - reports.c \
34   - headerlist.c \
35   - requirelist.c \
36   - rpmfunctions.c \
37   - backend-sqlite3.c
38   -
39   -distroquery_SOURCES = \
40   - distroquery.c \
41   - functions.c \
42   - headerlist.c \
43   - requirelist.c \
44   - rpmfunctions.c \
45   - changelog.c
46   -
47   -SUBDIRS = include missing
src/include/Makefile.am
1   -# This file is part of `distromatic', the tool for RPM based repositories
2   -# Copyright (C) 2006 Davide Madrisan <davide.madrisan@gmail.com>
3   -# Copyright (C) 2007 Silvan Calarco <silvan.calarco@mambasoft.it>
4   -#
5   -# This program is free software; you can redistribute it and/or modify it under
6   -# the terms of version 2 of the GNU General Public License as published by the
7   -# Free Software Foundation.
8   -#
9   -# This program is distributed in the hope that it will be useful, but WITHOUT
10   -# ANY WARRANTY, to the extent permitted by law; without even the implied
11   -# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12   -# See the GNU General Public License for more details.
13   -#
14   -# You should have received a copy of the GNU General Public License along with
15   -# this program; if not, write to the Free Software Foundation, Inc.,
16   -# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
17   -
18   -EXTRA_DIST = \
19   - backend-sqlite3.h \
20   - buildtools.h \
21   - changelog.h \
22   - distromatic.h \
23   - globaldefs.h.in \
24   - functions.h \
25   - reports.h \
26   - headerlist.h \
27   - requirelist.h \
28   - rpmfunctions.h
src/missing/Makefile.am
1   -# This file is part of `distromatic', the QiLinux RPM tool for the distribution
2   -# Copyright (C) 2006 by Davide Madrisan <davide.madrisan@gmail.com>
3   -#
4   -# This program is free software; you can redistribute it and/or modify it under
5   -# the terms of version 2 of the GNU General Public License as published by the
6   -# Free Software Foundation.
7   -#
8   -# This program is distributed in the hope that it will be useful, but WITHOUT
9   -# ANY WARRANTY, to the extent permitted by law; without even the implied
10   -# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11   -# See the GNU General Public License for more details.
12   -#
13   -# You should have received a copy of the GNU General Public License along with
14   -# this program; if not, write to the Free Software Foundation, Inc.,
15   -# 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
16   -
17   -# config.h is in `$(top_builddir)'
18   -AM_CPPFLAGS = -I$(top_srcdir)/src/include \
19   - -I$(top_builddir)/src/include \
20   - -I$(top_builddir)
21   -
22   -EXTRA_DIST = malloc.c
src/missing/malloc.c
1   -/* This file is part of `distromatic', the QiLinux RPM tool for the distribution.
2   - * Copyright (C) 2006 by Davide Madrisan <davide.madrisan@gmail.com>
3   - *
4   - * This program is free software; you can redistribute it and/or modify it under
5   - * the terms of version 2 of the GNU General Public License as published by the
6   - * Free Software Foundation.
7   - *
8   - * This program is distributed in the hope that it will be useful, but WITHOUT
9   - * ANY WARRANTY, to the extent permitted by law; without even the implied
10   - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11   - * See the GNU General Public License for more details.
12   - *
13   - * You should have received a copy of the GNU General Public License along with
14   - * this program; if not, write to the Free Software Foundation, Inc.,
15   - * 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
16   - */
17   -
18   -#if HAVE_CONFIG_H
19   -#include <config.h>
20   -#endif
21   -#undef malloc
22   -
23   -#include <sys/types.h>
24   -
25   -void *malloc(size_t size);
26   -void *rpl_malloc(size_t size);
27   -
28   -/* allocate an size-byte block of memory from the heap;
29   - * if size is zero, allocate a 1-byte block
30   - */
31   -void *
32   -rpl_malloc(size_t size)
33   -{
34   - return malloc(size ? size : 1);
35   -}