freeradius/freeradius.patch

Wed, 14 Jan 2009 15:59:12 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 14 Jan 2009 15:59:12 +0100
changeset 86
78e7deb1d6ab
parent 47
120a0b206db9
child 306
cc6a45887422
permissions
-rw-r--r--

Correct and improve many buildconf and code logic blocks. In particular:
1. Document potential problems building with current binutils releases.
2. Document the flawed webkit and explain its temporary exclusion.
3. Document the edition of Qt which is built and installed.
4. Remove the Solaris x11_supdir logic as it is no longer found.
5. Correct several .pr[io] files including QMAKE_CXXFLAGS and INCPATH,
which previously caused preexisting Qt installations to deliver
erroneous old include and library logic instead of relying on
that of the currently building package. -I/opkg/include is now
placed at the end of the compile statements.
6. Don't trust the QMAKE_[INC|LIB]DIR_X11 identifiers in qmake.conf.
7. Allow more 64-bit builds and more properly identify the platform.
8. Place plugins (which are shared objects) in lib instead of share.
9. Build components as plugins when possible if with_shared is enabled.
10. Translate German text to English to be more consistent.
11. Instead of removing the pkgconfig directory of with_shared builds,
place it in a child directory useful for shared building.
12. Document the nonstandard shared build directory structure,
including using the hidden pkgconfig directory (PKG_CONFIG_PATH.)
13. Change %doc to specify files rather than directories in the RPM DB.

michael@47 1 Index: Make.inc.in
michael@47 2 --- Make.inc.in.orig 2008-09-25 10:41:26 +0200
michael@47 3 +++ Make.inc.in 2008-09-25 17:56:09 +0200
michael@47 4 @@ -15,7 +15,7 @@
michael@47 5 docdir = @docdir@
michael@47 6 mandir = @mandir@
michael@47 7 datadir = @datadir@
michael@47 8 -dictdir = $(datadir)/freeradius
michael@47 9 +dictdir = $(datadir)
michael@47 10 logdir = @logdir@
michael@47 11 includedir = @includedir@
michael@47 12 raddbdir = @raddbdir@
michael@47 13 @@ -48,7 +48,7 @@
michael@47 14
michael@47 15 LOGDIR = ${logdir}
michael@47 16 RADDBDIR = ${raddbdir}
michael@47 17 -RUNDIR = ${localstatedir}/run/radiusd
michael@47 18 +RUNDIR = ${localstatedir}
michael@47 19 SBINDIR = ${sbindir}
michael@47 20 RADIR = ${radacctdir}
michael@47 21 LIBRADIUS = $(top_builddir)/src/lib/$(LIBPREFIX)freeradius-radius.la
michael@47 22 Index: raddb/radiusd.conf.in
michael@47 23 --- raddb/radiusd.conf.in.orig 2008-09-25 10:41:26 +0200
michael@47 24 +++ raddb/radiusd.conf.in 2008-09-25 17:56:09 +0200
michael@47 25 @@ -66,7 +66,7 @@
michael@47 26
michael@47 27 # Location of config and logfiles.
michael@47 28 confdir = ${raddbdir}
michael@47 29 -run_dir = ${localstatedir}/run/radiusd
michael@47 30 +run_dir = ${localstatedir}
michael@47 31
michael@47 32 # Should likely be ${localstatedir}/lib/radiusd
michael@47 33 db_dir = ${raddbdir}
michael@47 34 Index: src/modules/rlm_sql/drivers/Makefile.in
michael@47 35 --- src/modules/rlm_sql/drivers/Makefile.in.orig 2008-09-25 10:41:26 +0200
michael@47 36 +++ src/modules/rlm_sql/drivers/Makefile.in 2008-09-25 17:56:09 +0200
michael@47 37 @@ -16,7 +16,7 @@
michael@47 38
michael@47 39 common:
michael@47 40 @[ -d lib/ ] || mkdir lib
michael@47 41 - @for mod in $(SQL_MODULES); do \
michael@47 42 + @for mod in $(SQL_MODULES) NOOP; do \
michael@47 43 echo "Making $(WHAT_TO_MAKE) in $$mod..."; \
michael@47 44 - $(MAKE) $(MFLAGS) -C $$mod $(WHAT_TO_MAKE) || exit $$?; \
michael@47 45 + [ -d $$mod ] || exit 0; $(MAKE) $(MFLAGS) -C $$mod $(WHAT_TO_MAKE) || exit $$?; \
michael@47 46 done
michael@48 47 Index: src/main/command.c
michael@48 48 --- src/main/command.c.orig 2009-01-08 19:39:52.565611820 +0100
michael@48 49 +++ src/main/command.c 2009-01-08 19:40:18.333372190 +0100
michael@48 50 @@ -148,7 +148,7 @@
michael@48 51 salocal.sun_family = AF_UNIX;
michael@48 52 memcpy(salocal.sun_path, path, len + 1); /* SUN_LEN does strlen */
michael@48 53
michael@48 54 - socklen = SUN_LEN(&salocal);
michael@48 55 + socklen = sizeof(salocal) - sizeof(salocal.sun_path) + strlen(salocal.sun_path);
michael@48 56
michael@48 57 /*
michael@48 58 * Check the path.
michael@48 59 Index: src/main/radmin.c
michael@48 60 --- src/main/radmin.c.orig 2009-01-08 19:36:15.333428110 +0100
michael@48 61 +++ src/main/radmin.c 2009-01-08 19:39:15.131776575 +0100
michael@48 62 @@ -112,7 +112,7 @@
michael@48 63 saremote.sun_family = AF_UNIX;
michael@48 64 memcpy(saremote.sun_path, path, len + 1); /* SUN_LEN does strlen */
michael@48 65
michael@48 66 - socklen = SUN_LEN(&saremote);
michael@48 67 + socklen = sizeof(saremote) - sizeof(saremote.sun_path) + strlen(saremote.sun_path);
michael@48 68
michael@48 69 if (connect(sockfd, (struct sockaddr *)&saremote, socklen) < 0) {
michael@48 70 fprintf(stderr, "%s: Failed connecting to %s: %s\n",

mercurial