Bug 165709 - net/gnu-radius 1.6.1 make install problem
Summary: net/gnu-radius 1.6.1 make install problem
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: Pietro Cerutti
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-05 12:30 UTC by Tomasz "CeDeROM" CEDRO
Modified: 2012-03-06 08:20 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz "CeDeROM" CEDRO 2012-03-05 12:30:14 UTC
There is a problem with installing the GNU-RADIUS package from ports at "Installing rc.d startup script(s)" stage:
cp: /usr/local/etc/raddb/access.deny-dist: No such file or directory

How-To-Repeat: mercury# make install
..
gmake[2]: Nothing to be done for `install-exec-am'.
gmake[2]: Leaving directory `/usr/ports/net/gnu-radius/work/radius-1.6.1'
gmake[1]: Leaving directory `/usr/ports/net/gnu-radius/work/radius-1.6.1'
===> Installing rc.d startup script(s)
install  -o root -g wheel -m 555 /usr/ports/net/gnu-radius/work/radiusd.sh /usr/local/etc/rc.d/radiusd.sh
install  -o root -g wheel -m 444 /usr/ports/net/gnu-radius/work/radius-1.6.1/examples/README /usr/local/share/examples/gnu-radius
install  -o root -g wheel -m 444 /usr/ports/net/gnu-radius/work/radius-1.6.1/examples/ascend.rw /usr/local/share/examples/gnu-radius
install  -o root -g wheel -m 444 /usr/ports/net/gnu-radius/work/radius-1.6.1/examples/c3620.rw /usr/local/share/examples/gnu-radius
install  -o root -g wheel -m 444 /usr/ports/net/gnu-radius/work/radius-1.6.1/examples/cisco.rw /usr/local/share/examples/gnu-radius
install  -o root -g wheel -m 444 /usr/ports/net/gnu-radius/work/radius-1.6.1/examples/comos.rw /usr/local/share/examples/gnu-radius
install  -o root -g wheel -m 444 /usr/ports/net/gnu-radius/work/radius-1.6.1/examples/config.syntax /usr/local/share/examples/gnu-radius
install  -o root -g wheel -m 444 /usr/ports/net/gnu-radius/work/radius-1.6.1/examples/filter.rw /usr/local/share/examples/gnu-radius
install  -o root -g wheel -m 444 /usr/ports/net/gnu-radius/work/radius-1.6.1/examples/hints-0.96 /usr/local/share/examples/gnu-radius
install  -o root -g wheel -m 444 /usr/ports/net/gnu-radius/work/radius-1.6.1/examples/jetstream.rw /usr/local/share/examples/gnu-radius
install  -o root -g wheel -m 444 /usr/ports/net/gnu-radius/work/radius-1.6.1/examples/nt.rw /usr/local/share/examples/gnu-radius
install  -o root -g wheel -m 444 /usr/ports/net/gnu-radius/work/radius-1.6.1/examples/pam.conf /usr/local/share/examples/gnu-radius
install  -o root -g wheel -m 444 /usr/ports/net/gnu-radius/work/radius-1.6.1/examples/radius.php /usr/local/share/examples/gnu-radius
cp: /usr/local/etc/raddb/access.deny-dist: No such file or directory
*** Error code 1

Stop in /usr/ports/net/gnu-radius.
*** Error code 1

Stop in /usr/ports/net/gnu-radius.
*** Error code 1

Stop in /usr/ports/net/gnu-radius.
mercury# pwd
/usr/ports/net/gnu-radius
mercury# uname -a
FreeBSD mercury 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

mercury# cat Makefile 
# New ports collection makefile for:	gnu-radius
# Date created:		13 Jul 2001
# Whom:			lance@evitel.net
#
# $FreeBSD: ports/net/gnu-radius/Makefile,v 1.53 2011/07/31 15:07:06 jlaffaye Exp $

PORTNAME=	gnu-radius
PORTVERSION=	1.6.1
PORTREVISION=	4
CATEGORIES=	net
MASTER_SITES=	${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR=	radius
DISTNAME=	radius-${PORTVERSION}

MAINTAINER=	gahr@FreeBSD.org
COMMENT=	GNU RADIUS server

CONFLICTS=	freeradius-0.* openradius-0.* radiusd-cistron-1.*
USE_RC_SUBR=	radiusd.sh
USE_SUBMAKE=	yes
USE_GMAKE=	yes
USE_AUTOTOOLS=	libltdl libtool
GNU_CONFIGURE=	yes
USE_LDCONFIG=	yes

PLIST_SUB=	PORTVERSION=${PORTVERSION}
SUB_FILES=	radiusd.sh
DATADIR=	${PREFIX}/share/radius

INFO=		radius
MAN1=		radgrep.1 radlast.1 raduse.1 radwho.1
MAN8=		builddbm.8 radctl.8 radiusd.8 radping.8 radzap.8
MANCOMPRESSED=	no

SCRIPTS_ENV=	WRKDIRPREFIX="${WRKDIRPREFIX}" \
		CURDIR="${.CURDIR}" \
		MKDIR="${MKDIR}"
CONFIGURE_ARGS+=--with-include-path="${LOCALBASE}/include/" \
		--with-lib-path="${LOCALBASE}/lib/"

OPTIONS=	CLIENT "Enable build client" off \
		DBM "Enable DBM support" off \
		MYSQL "Enable MySQL support" on \
		POSTGRESQL "Enable PostgreSQL support" off \
		SNMP "Enable SNMP support" off \
		EMACS "Enable emacs dotfiles install" off \
		PAM "Enable PAM support" off

CONFIG_FILES=	access.deny client.conf clients config dictionary \
		hints huntgroups naslist nastypes realms \
		sqlserver users
EXAMPLE_FILES=	README ascend.rw c3620.rw cisco.rw comos.rw config.syntax \
		filter.rw hints-0.96 jetstream.rw nt.rw pam.conf radius.php

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 900007
EXTRA_PATCHES=	${FILESDIR}/extra-utmpx
.endif

.if defined(WITH_SNMP)
CONFIGURE_ARGS+=--enable-snmp
.endif

.if defined(WITH_CLIENT)
LIB_DEPENDS+=	guile.21:${PORTSDIR}/lang/guile
CONFIGURE_ARGS+=--enable-client
PLIST_SUB+=	CLIENT=""
.else
CONFIGURE_ARGS+=--without-guile
PLIST_SUB+=	CLIENT="@comment "
.endif

.if defined(WITH_MYSQL)
USE_MYSQL=	yes
CONFIGURE_ARGS+=--with-mysql
PLIST_SUB+=	MYSQL=""
.else
PLIST_SUB+=	MYSQL="@comment "
.endif

.if defined(WITH_POSTGRESQL)
USE_PGSQL=	yes
CONFIGURE_ARGS+=--with-postgres
PLIST_SUB+=	PGSQL=""
.else
PLIST_SUB+=	PGSQL="@comment "
.endif

.if defined(WITH_MYSQL) || defined(WITH_POSTGRESQL)
PLIST_SUB+=	MODULES=""
.else
PLIST_SUB+=	MODULES="@comment "
.endif

.if defined(WITH_DBM)
CONFIGURE_ARGS+=--enable-dbm=ndbm
.endif

.if defined(WITH_EMACS)
.include "${PORTSDIR}/Mk/bsd.emacs.mk"
USE_EMACS=	yes
CONFIGURE_ARGS+=--with-lispdir=${PREFIX}/${EMACS_SITE_LISPDIR}
PLIST_SUB+=	EMACS=""
.else
CONFIGURE_ARGS+=--without-lispdir
PLIST_SUB+=	EMACS="@comment "
.endif

.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+=	NLS="@comment "
.else
USE_GETTEXT=	yes
PLIST_SUB+=	NLS=""
.endif

.if defined(WITH_PAM)
CONFIGURE_ARGS+=--enable-pam
.endif

post-patch:
	${REINPLACE_CMD} -e 's|extern unsigned scheme_gc_interval;||g' \
		${WRKSRC}/include/radiusd.h
	${REINPLACE_CMD} -e 's|int getline|ssize_t getline|' \
	    ${WRKSRC}/radtest/input.l ${WRKSRC}/radtest/input.c

post-install:
	${INSTALL_SCRIPT} ${WRKDIR}/radiusd.sh ${PREFIX}/etc/rc.d/radiusd.sh
.if !defined(NOPORTEXAMPLES)
	@${MKDIR} ${EXAMPLESDIR}
. for ex_file in ${EXAMPLE_FILES}
	${INSTALL_DATA} ${WRKSRC}/examples/${ex_file} ${EXAMPLESDIR}
. endfor
.endif
.for conf_file in ${CONFIG_FILES}
	@test -f ${PREFIX}/etc/raddb/${conf_file} || ${CP} -p \
	${PREFIX}/etc/raddb/${conf_file}-dist ${PREFIX}/etc/raddb/${conf_file}
.endfor

.include <bsd.port.post.mk>
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-03-05 16:28:29 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gahr

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2012-03-06 08:12:23 UTC
gahr        2012-03-06 08:12:09 UTC

  FreeBSD ports repository

  Modified files:
    net/gnu-radius       Makefile 
  Log:
  - fix installation issue: always install -dist config files
  
  PR:             165709
  Reported by:    Tomek Cedro <cederom@tlen.pl>
  
  Revision  Changes    Path
  1.54      +1 -0      ports/net/gnu-radius/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Pietro Cerutti freebsd_committer freebsd_triage 2012-03-06 08:12:44 UTC
State Changed
From-To: open->closed

I have put in a patch. Thanks!