[csw-devel] SF.net SVN: gar:[11777] csw/mgar/pkg/freeradius/trunk/Makefile

gadavis at users.sourceforge.net gadavis at users.sourceforge.net
Sat Dec 4 01:35:42 CET 2010


Revision: 11777
          http://gar.svn.sourceforge.net/gar/?rev=11777&view=rev
Author:   gadavis
Date:     2010-12-04 00:35:42 +0000 (Sat, 04 Dec 2010)

Log Message:
-----------
Disable some modules that were giving RPATH issues, add some checkpkg cleanups

Modified Paths:
--------------
    csw/mgar/pkg/freeradius/trunk/Makefile

Modified: csw/mgar/pkg/freeradius/trunk/Makefile
===================================================================
--- csw/mgar/pkg/freeradius/trunk/Makefile	2010-12-04 00:26:11 UTC (rev 11776)
+++ csw/mgar/pkg/freeradius/trunk/Makefile	2010-12-04 00:35:42 UTC (rev 11777)
@@ -11,17 +11,14 @@
 DISTFILES  = $(GARNAME)-server-$(GARVERSION).tar.gz
 DISTNAME = $(GARNAME)-server-$(GARVERSION)
 
-# We define upstream file regex so we can be notifed of new upstream software release
 UFILES_REGEX = $(GARNAME)-(\d+(?:\.\d+)*).tar.gz
 
-# If the url used to check for software update is different of MASTER_SITES, then 
-# uncomment the next line. Otherwise it is set by default to the value of MASTER_SITES
-# UPSTREAM_MASTER_SITES = 
-
 SPKG_SOURCEURL = http://freeradius.org/
 
+LICENSE = LICENSE
 GARCOMPILER = GCC4
 
+
 # Stripping libtool breaks the build in versions <=2.1.7
 #STRIP_LIBTOOL = 1
 
@@ -31,39 +28,80 @@
 #EXTRA_CFLAGS += -DIE_LIBTOOL_DIE
 #CONFIGURE_ENV = CFLAGS="$(CFLAGS)"
 
+#EXTRA_MERGE_EXCLUDE_FILES += /opt/csw/lib/libltdl.so.*
+#EXTRA_MERGE_EXCLUDE_FILES += /opt/csw/lib/sparcv9/libltdl.so.*
+#EXTRA_MERGE_EXCLUDE_FILES += /opt/csw/lib/amd64/libltdl.so.*
+#EXTRA_MERGE_EXCLUDE_FILES += /opt/csw/include/ltdl.h
+
+RUNTIME_DEP_PKGS_CSWfreeradius += CSWlibpython2-6-1-0
+RUNTIME_DEP_PKGS_CSWfreeradius += CSWlibpcap
+RUNTIME_DEP_PKGS_CSWfreeradius += CSWoldaprt
+RUNTIME_DEP_PKGS_CSWfreeradius += CSWosslrt
+RUNTIME_DEP_PKGS_CSWfreeradius += CSWgdbm
+RUNTIME_DEP_PKGS_CSWfreeradius += CSWlibltdl7
+RUNTIME_DEP_PKGS_CSWfreeradius += CSWreadline
+RUNTIME_DEP_PKGS_CSWfreeradius += CSWkrb5lib
+RUNTIME_DEP_PKGS_CSWfreeradius += CSWgcc4corert
+
+## Can't get perl to link cleanly
+## Still get noise about a missing dependency due to an included example 
+## script in raddb
+#RUNTIME_DEP_PKGS_CSWfreeradius += CSWperl
+CHECKPKG_OVERRIDES_CSWfreeradius += missing-dependency|CSWperl
+
+# Put libraries (including all of the modules) in /opt/csw/lib/freeradius
+libdir     = $(abspath $(libdir_install)/$(GARNAME)/$(MM_LIBDIR))
+
+# Put the config in the recommended /etc/opt/csw tree
+sysconfdir = /etc$(prefix)
+raddbdir   = $(sysconfdir)/raddb
+# move all of the var stuff to /var/opt/csw
+localstatedir = /var$(prefix)
+
 CONFIGURE_ARGS  = $(DIRPATHS)
 CONFIGURE_ARGS += CC=$(CC) CXX=$(CXX) F77=$(F77) FC=$(FC)
 CONFIGURE_ARGS += CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)"
 CONFIGURE_ARGS += CPPFLAGS="$(CPPFLAGS)" FCFLAGS="$(FCFLAGS)"
 CONFIGURE_ARGS += LDFLAGS="$(LDFLAGS)"
+#CONFIGURE_ARGS += MYSQL_CONFIG=/opt/csw/mysql5/bin/$(ISA)/mysql_config 
 CONFIGURE_ARGS += --with-system-libtool
 CONFIGURE_ARGS += --with-system-libltld
-CONFIGURE_ARGS += --without-rlm_sqlippool
-CONFIGURE_ARGS += --with-rlm_sql_mysql
-CONFIGURE_ARGS += --without-rlm_sql_postgresql
-CONFIGURE_ARGS += --without-rlm_sql_db2
+CONFIGURE_ARGS += --with-raddbdir=$(raddbdir)
+CONFIGURE_ARGS += --enable-ltdl-install=no
+CONFIGURE_ARGS += --enable-strict-dependencies
+CONFIGURE_ARGS += --enable-developer
+CONFIGURE_ARGS += --with-large-files --with-updfromto --with-edir
 CONFIGURE_ARGS += --without-rlm_sql_firebird
 CONFIGURE_ARGS += --without-rlm_sql_freetds
 CONFIGURE_ARGS += --without-rlm_sql_iodbc
 CONFIGURE_ARGS += --without-rlm_sql_oracle
 CONFIGURE_ARGS += --without-rlm_sql_sybase
-CONFIGURE_ARGS += --with-rlm_sql_unixodbc
-CONFIGURE_ARGS += --with-rlm-ldap
+CONFIGURE_ARGS += --without-rlm_sql_db2
 CONFIGURE_ARGS += --without-rlm_eap_ikev2
-CONFIGURE_ARGS += --without-rlm_eap_sim
-CONFIGURE_ARGS += --with-rlm_eap_tls
-CONFIGURE_ARGS += --without-rlm_eap_peap
-CONFIGURE_ARGS += --without-rlm_eap_ttls
+CONFIGURE_ARGS += --without-rlm_sql_unixodbc
 CONFIGURE_ARGS += --without-rlm_eap_tnc
-CONFIGURE_ARGS += --with-rlm_krb5
-CONFIGURE_ARGS += --without-rlm_dbm
-CONFIGURE_ARGS += --without-rlm_otp
-CONFIGURE_ARGS += --with-rlm_pam
-CONFIGURE_ARGS += --with-rlm_python
-CONFIGURE_ARGS += --with-snmp
-CONFIGURE_ARGS += --with-rlm_counter-include-dir=/opt/csw/include
-CONFIGURE_ARGS += --with-rlm_counter-lib-dir=/opt/csw/lib/$(MM_LIBDIR)
 
+## Disabling Postgresql because it's going to take a bunch of weird
+## Makefile hackery of these non-automake Makefiles to get the RPATH right
+#BUILD_DEP_PKGS += CSWpostgresql
+#rlm_pgsql_lib = $(shell /opt/csw/postgresql/bin/$(ISA)/pg_config --libdir)
+#rlm_pgsql_inc = $(shell /opt/csw/postgresql/bin/$(ISA)/pg_config --includedir)
+#CONFIGURE_ARGS += --with-rlm_sql_postgresql_lib_dir=$(rlm_pgsql_lib)
+#CONFIGURE_ARGS += --with-rlm_sql_postgresql_include_dir=$(rlm_pgsql_inc)
+CONFIGURE_ARGS += --without-rlm_sql_postgresql
+
+## Disabling MySQL because it's going to take a bunch of weird
+## Makefile hackery of these non-automake Makefiles to get the RPATH right
+#BUILD_DEP_PKGS += CSWmysql5devel
+#CONFIGURE_ARGS += --with-mysql-lib-dir=/opt/csw/mysql5/lib/$(ISA)/mysql
+#CONFIGURE_ARGS += --with-mysql-include-dir=/opt/csw/mysql5/include
+CONFIGURE_ARGS += --without-rlm_sql_mysql
+
+## Disabling Perl due to linker issues and weird makefiles
+#rlm_perl_inc = $(shell /opt/csw/bin/perl -e 'use Config; print "$$Config{archlib}\n"')/CORE
+#CONFIGURE_ARGS += --with-rlm_perl_include_dir=$(rlm_perl_inc)
+CONFIGURE_ARGS += --without-rlm_perl
+
 # No tests available
 TEST_TARGET =
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list