~ubuntu-branches/ubuntu/natty/freeradius/natty-updates

« back to all changes in this revision

Viewing changes to src/modules/rules.mak

  • Committer: Bazaar Package Importer
  • Author(s): Josip Rodin
  • Date: 2009-11-23 03:57:37 UTC
  • mfrom: (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: james.westby@ubuntu.com-20091123035737-zsgtzhfych8hir68
Tags: 2.1.7+dfsg-1
* Adopting the package, closes: #536623.
* New upstream version, closes: #513484.
  + Fixes the blooper in unlang evaluation logic, closes: #526175.
* Used quilt (and added README.source), and moved upstream file patching
  into debian/patches/. The source is no longer in collab-maint git
  (to make it simpler for me to finally get this out the door), but
  kept the .gitignore should we need that again.
* Dropped the dialup_admin/bin/backup_radacct patch (integrated upstream).
* Dropped the raddb/Makefile patch (problem no longer exists upstream).
* Dropped the lib/packet.c lib/radius.c main/listen.c patches (was from
  upstream 2.0.5 anyway).
* Dropped references to otp.conf, it no longer exists upstream.
  Keep removing the conffile statoverride in prerm.
* Dropped references to snmp.conf, it no longer exists upstream.
  Keep removing the conffile statoverride in prerm.
* Ship /etc/freeradius/modules/* in the freeradius package.
* Stop shipping sites-enabled symlinks in the package and instead create
  them only on initial install, thanks to Matej Vela, closes: #533396.
* Add export PATH="${PATH:+$PATH:}/usr/sbin:/sbin" to the init script
  at the request of John Morrissey, closes: #550143.
* Stop installing /var/run/freeradius in the package to silence Lintian.
  The init script already recreates it at will.
* Remove executable bit from example.pl to silence Lintian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#######################################################################
2
2
#
3
 
# $Id: rules.mak,v 1.70 2008/01/10 10:12:01 aland Exp $
 
3
# $Id$
4
4
#
5
5
#  Each module should have a few common defines at the TOP of the
6
6
# Makefile, and the 'include ../rules.mak'
42
42
#######################################################################
43
43
LT_OBJS         += $(SRCS:.c=.lo)
44
44
LT_OBJS         += $(SRCS:.cpp=.lo)
45
 
CFLAGS          += -I$(top_builddir)/src -I$(top_builddir)/libltdl
 
45
CFLAGS          += -I$(top_builddir)/src $(INCLTDL)
46
46
 
47
47
#######################################################################
48
48
#
106
106
#
107
107
#######################################################################
108
108
 
 
109
#
 
110
#  We can't use $(PWD), because that's apparently where the "make"
 
111
#  started.  Any child builds (make -C foo) don't change PWD.
 
112
#
 
113
WHERE=$(shell pwd)
 
114
 
109
115
build-module: $(TARGET).la $(RLM_UTILS)
110
116
        @[ "x$(RLM_SUBDIRS)" = "x" ] || $(MAKE) $(MFLAGS) WHAT_TO_MAKE=all common
111
117
        @[ -d $(top_builddir)/src/modules/lib/.libs ] || mkdir $(top_builddir)/src/modules/lib/.libs
112
 
        @cp .libs/* $(top_builddir)/src/modules/lib/.libs
113
 
        @cp $< $(top_builddir)/src/modules/lib
 
118
        for x in .libs/* $^; do \
 
119
                rm -rf $(top_builddir)/src/modules/lib/$$x; \
 
120
                ln -s $(WHERE)/$$x $(top_builddir)/src/modules/lib/$$x; \
 
121
        done
114
122
 
115
123
$(TARGET).la: $(LT_OBJS)
116
124
        $(LIBTOOL) --mode=link $(CC) -release $(RADIUSD_VERSION) \
166
174
            rm -f $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION).la; \
167
175
            ln -s $(TARGET).la $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION).la || exit $$?; \
168
176
        fi
 
177
 
 
178
.PHONY: scan
 
179
scan:
 
180
        @[ "$(SCAN_BUILD)" == "" ] || ($(MAKE) SCAN=yes LIBTOOL= 2>&1) | grep 'scan-view' || true