Bug 170253 - [patch] net/freeradius2 fix PgSQL grant statement in admin.sql
Summary: [patch] net/freeradius2 fix PgSQL grant statement in admin.sql
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Ryan Steinmetz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-29 10:00 UTC by Olli Hauer
Modified: 2012-07-30 13:20 UTC (History)
0 users

See Also:


Attachments
freeradius2.diff (546 bytes, patch)
2012-07-29 10:00 UTC, Olli Hauer
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olli Hauer freebsd_committer freebsd_triage 2012-07-29 10:00:02 UTC
Fix SQL grant statement (PgSQL != MySQL)

https://bugzilla.redhat.com/show_bug.cgi?id=690756
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-07-29 10:00:37 UTC
Responsible Changed
From-To: freebsd-ports-bugs->zi

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Ryan Steinmetz freebsd_committer freebsd_triage 2012-07-30 13:10:47 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2012-07-30 13:10:57 UTC
Author: zi
Date: Mon Jul 30 12:10:39 2012
New Revision: 301715
URL: http://svn.freebsd.org/changeset/ports/301715

Log:
  - Fix grant statement when using PgSQL [1]
  - Pacify portlint
  
  PR:		ports/170253 [1]
  Submitted by:	ohauer [1]

Modified:
  head/net/freeradius2/Makefile

Modified: head/net/freeradius2/Makefile
==============================================================================
--- head/net/freeradius2/Makefile	Mon Jul 30 12:03:36 2012	(r301714)
+++ head/net/freeradius2/Makefile	Mon Jul 30 12:10:39 2012	(r301715)
@@ -25,7 +25,7 @@ COMMENT=	A free RADIUS server implementa
 
 LICENSE=	GPLv2
 
-LIB_DEPENDS=	gdbm.4:${PORTSDIR}/databases/gdbm
+LIB_DEPENDS=	gdbm:${PORTSDIR}/databases/gdbm
 
 LOGDIR?=	/var/log
 KRB5_CONFIG?=	/usr/bin/krb5-config --libs
@@ -89,11 +89,11 @@ WITH_KERBEROS=	yes
 .ifdef(WITH_KERBEROS)
 .ifdef(WITH_HEIMDAL)
 .ifdef(WITH_HEIMDAL_PORT)
-LIB_DEPENDS+=	krb5.26:${PORTSDIR}/security/heimdal
+LIB_DEPENDS+=	krb5:${PORTSDIR}/security/heimdal
 .endif
 CONFIGURE_ARGS+=--enable-heimdal-krb5
 .else
-LIB_DEPENDS+=	krb5.3:${PORTSDIR}/security/krb5
+LIB_DEPENDS+=	krb5:${PORTSDIR}/security/krb5
 .endif
 CONFIGURE_ARGS+=--with-rlm_krb5
 .if defined (WITH_HEIMDAL) && !defined(WITH_HEIMDAL_PORT)
@@ -148,7 +148,7 @@ PLIST_SUB+=	PGSQL="@comment "
 .ifdef(WITH_UNIXODBC)
 CONFIGURE_ARGS+=--with-rlm_sql_unixodbc
 PLIST_SUB+=	UNIXODBC=""
-LIB_DEPENDS+=	odbc.2:${PORTSDIR}/databases/unixODBC
+LIB_DEPENDS+=	odbc:${PORTSDIR}/databases/unixODBC
 .else
 CONFIGURE_ARGS+=--without-rlm_sql_unixodbc
 PLIST_SUB+=	UNIXODBC="@comment "
@@ -215,7 +215,7 @@ EXPM=		yes
 
 # No SMB option yet; rlm_smb is still unbuildable
 .ifdef(WITH_SMB)
-LIB_DEPENDS=	smbclient.0:${PORTSDIR}/net/samba-libsmbclient
+LIB_DEPENDS=	smbclient:${PORTSDIR}/net/samba-libsmbclient
 CONFIGURE_ARGS+=--with-rlm_smb
 CONFIGURE_ARGS+=--with-rlm-smb-lib-dir=${LOCALBASE}/lib
 CONFIGURE_ARGS+=--with-rlm-smb-include-dir=${LOCALBASE}/include
@@ -363,6 +363,9 @@ post-patch:
 		-regex '.*/dictionary\.(orig|bak)$$' \
 		-delete
 .endif
+# Fix PgSQL statement
+	@${REINPLACE_CMD} -i '' -e 's|ius.rad||' \
+		${WRKSRC}/raddb/sql/postgresql/admin.sql
 # Patch scripts/Makefile not to install (unnecessary) rc.radiusd
 	@${REINPLACE_CMD} -Ee 's:^(.+rc\.radiusd.+)$$:#\1:g' \
 		${WRKSRC}/scripts/Makefile
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"