help-gnu-radius
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gnu-radius] Install Radius 1.0


From: Sergey Poznyakoff
Subject: Re: [Help-gnu-radius] Install Radius 1.0
Date: Sun, 29 Jun 2003 23:11:34 +0300

Hello Dmitriy,

The following simple patch should allow you to run `make
DESTDIR=whatever'.

Regards,
Sergey

Index: client/nas/Makefile.am
===================================================================
RCS file: /cvsroot/radius/radius/client/nas/Makefile.am,v
retrieving revision 1.3
diff -p -u -r1.3 Makefile.am
--- client/nas/Makefile.am      29 May 2003 15:50:26 -0000      1.3
+++ client/nas/Makefile.am      29 Jun 2003 20:02:40 -0000
@@ -20,14 +20,14 @@ EXTRA_SCRIPTS=nas.scm
 CLEANFILES=$(libexec_SCRIPTS)
 EXTRA_DIST=nas.rc nas.scm.in
 pppdir=/etc/ppp
address@hidden@/raddb
+raddbdir=$(sysconfdir)/raddb
 raddb_DATA=nas.rc
 
 nas.scm: $(srcdir)/nas.scm.in
        sed "s,BINDIR,$(bindir)," $(srcdir)/nas.scm.in > nas.scm
 
 install-exec-hook:
-       @if [ -d $(pppdir) ]; then \
+       @if [ -d $(DESTDIR)$(pppdir) ]; then \
                echo "***************************************************"; \
                echo "If you wish to use nas.scm for accounting purposes,"; \
                echo "create the following symbolic links:"; \
Index: raddb/Makefile.am
===================================================================
RCS file: /cvsroot/radius/radius/raddb/Makefile.am,v
retrieving revision 1.14
diff -p -u -r1.14 Makefile.am
--- raddb/Makefile.am   5 Jun 2003 07:06:28 -0000       1.14
+++ raddb/Makefile.am   29 Jun 2003 20:02:51 -0000
@@ -50,25 +50,25 @@ EXTRA_DIST=$(raddb_files) client.conf.in
 DISTCLEANFILES=client.conf
 
 install-data-local:
-       @if [ ! -d $(raddbdir) ]; then \
-               ${INSTALL} -d $(raddbdir); \
+       @if [ ! -d $(DESTDIR)$(raddbdir) ]; then \
+               ${INSTALL} -d $(DESTDIR)$(raddbdir); \
        fi
        @for dir in $(raddb_subdirs); do \
-               if [ ! -d $(raddbdir)/$$dir ]; then \
-                       ${INSTALL} -d $(raddbdir)/$$dir; \
+               if [ ! -d $(DESTDIR)$(raddbdir)/$$dir ]; then \
+                       ${INSTALL} -d $(DESTDIR)$(raddbdir)/$$dir; \
                fi; \
        done
-       @if [ -r $(raddbdir)/users ]; then \
+       @if [ -r $(DESTDIR)$(raddbdir)/users ]; then \
                echo 
'================================================================='; \
                echo "Warning: The configuration directory $(raddbdir) already 
exists"; \
                echo "Make sure your dictionary is up to date!"; \
                echo 
'================================================================='; \
        else \
                for file in $(raddb_files_644); do \
-                       ${INSTALL} -m 644 $(top_srcdir)/raddb/$$file 
$(raddbdir)/$$file; \
+                       ${INSTALL} -m 644 $(top_srcdir)/raddb/$$file 
$(DESTDIR)$(raddbdir)/$$file; \
                done; \
                for file in $(raddb_files_600); do \
-                       ${INSTALL} -m 600 $(top_srcdir)/raddb/$$file 
$(raddbdir)/$$file; \
+                       ${INSTALL} -m 600 $(top_srcdir)/raddb/$$file 
$(DESTDIR)$(raddbdir)/$$file; \
                done; \
        fi
 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]