Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update debian rules #92

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions debian/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,3 @@
#

AUTOMAKE_OPTIONS = foreign

EXTRA_DIST = README.debian changelog conffiles control copyright dirs \
docs examples files libradius-ng-dev.dirs libradius-ng-dev.files \
libradius-ng.conffiles libradius-ng.dirs libradius-ng.files \
libradius-ng.postinst libradius-ng.substvars postrm \
radiusclient-ng.dirs radiusclient-ng.files \
radiusclient-ng.postinst rules substvars watch

19 changes: 0 additions & 19 deletions debian/README.debian

This file was deleted.

10 changes: 5 additions & 5 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
radiusclient-ng (0.5.0) unstable; urgency=low
freeradius-client2 (1.1.7~1) unstable; urgency=low

* New upstream release

-- Jan Janak <jan@iptel.org> Mon, 23 May 2005 20:37:22 +0200
-- s3rj1k <evasive.gyron@gmail.com> Thu, 27 Sep 2018 20:37:22 +0200

radiusclient-ng (0.4.8) unstable; urgency=low
freeradius-client2 (1.1.7~0) unstable; urgency=low

* Initial Release.
* Stub release.

-- Jan Janak <jan@iptel.org> Mon, 15 Nov 2004 12:20:43 +0100
-- s3rj1k <evasive.gyron@gmail.com> Thu, 27 Sep 2018 20:00:00 +0200
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
3 changes: 0 additions & 3 deletions debian/conffiles

This file was deleted.

25 changes: 7 additions & 18 deletions debian/control
Original file line number Diff line number Diff line change
@@ -1,32 +1,27 @@
Source: radiusclient-ng
Source: freeradius-client2
Section: admin
Priority: extra
Maintainer: Jan Janak <jan@iptel.org>
Maintainer: s3rj1k <evasive.gyron@gmail.com>
Build-Depends: debhelper, libtool
Standards-Version: 3.5.2

Package: radiusclient-ng
Package: freeradius-client2
Architecture: any
Section: admin
Depends: libradius-ng, perl5, ${shlibs:Depends}
Conflicts: radiusclient1
Depends: libradius, perl5, ${shlibs:Depends}
Description: /bin/login replacement which uses the RADIUS protocol for authentication.
Radiusclient is a /bin/login replacement which gets called by a getty
to log in a user and to setup the user's login environment. Normal
login programs just check the login name and password which the user
entered against the local password file (/etc/passwd, /etc/shadow).
In contrast to that Radiusclient also uses the RADIUS protocol to
authenticate the user.
.
The "-ng" version of libradiusclient contains enhanced API made by
Maxim Sobolev <sobomax@portaone.com>
.
This is the main binary archive.

Package: libradius-ng-dev
Package: libfreeradius-client2-dev
Architecture: any
Section: libdevel
Depends: libradius-ng, libc6-dev
Depends: libfreeradius-client2, libc6-dev
Description: /bin/login replacement with RADIUS. Header file and link lib.
Radiusclient is a /bin/login replacement which gets called by a getty
to log in a user and to setup the user's login environment. Normal
Expand All @@ -35,13 +30,10 @@ Description: /bin/login replacement with RADIUS. Header file and link lib.
In contrast to that Radiusclient also uses the RADIUS protocol to
authenticate the user.
.
The "-ng" version of libradiusclient contains enhanced API made by
Maxim Sobolev <sobomax@portaone.com>
.
This is the development package, to be able to develop programs that
uses the RADIUS library.

Package: libradius-ng
Package: libfreeradius-client2
Architecture: any
Section: libs
Depends: ${shlibs:Depends}
Expand All @@ -53,7 +45,4 @@ Description: /bin/login replacement with RADIUS. Shared lib to used by programs.
contrast to that Radiusclient also uses the RADIUS protocol to
authenticate the user.
.
The "-ng" version of libradiusclient contains enhanced API made by
Maxim Sobolev <sobomax@portaone.com>
.
This is the libraries needed by any client needing the RADIUS protocol.
4 changes: 2 additions & 2 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
This package was debianized by Jan Janak <jan@iptel.org> on
Mon, 15 Nov 2004 12:20:42 +0100.
This package was debianized by s3rj1k <evasive.gyron@gmail.com> on
Thu, 27 May 2018 20:37:22 +0200.

The debian package files have been derived from the original
radiusclient1 debian package.
Expand Down
6 changes: 0 additions & 6 deletions debian/dirs

This file was deleted.

2 changes: 1 addition & 1 deletion debian/docs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
BUGS README README.radexample doc/instop.html
BUGS README.rst README.radexample doc/instop.html
3 changes: 0 additions & 3 deletions debian/files

This file was deleted.

2 changes: 2 additions & 0 deletions debian/freeradius-client2.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
etc/radiusclient/*
usr/sbin/*
12 changes: 12 additions & 0 deletions debian/freeradius-client2.lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# upstream does not provide changelog
freeradius-client2: debian-changelog-file-missing-or-wrong-name
# we do use helper template
freeradius-client2: helper-templates-in-copyright
# upstream does not provide man pages
freeradius-client2: binary-without-manpage usr/sbin/login.radius
freeradius-client2: binary-without-manpage usr/sbin/radacct
freeradius-client2: binary-without-manpage usr/sbin/radembedded
freeradius-client2: binary-without-manpage usr/sbin/radexample
freeradius-client2: binary-without-manpage usr/sbin/radiusclient
freeradius-client2: binary-without-manpage usr/sbin/radlogin
freeradius-client2: binary-without-manpage usr/sbin/radstatus
4 changes: 4 additions & 0 deletions debian/libfreeradius-client2-dev.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
usr/include/*.h
usr/lib/*/*.a
usr/lib/*/*.la

4 changes: 4 additions & 0 deletions debian/libfreeradius-client2-dev.lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# upstream does not provide changelog
libfreeradius-client2-dev: debian-changelog-file-missing-or-wrong-name
# we do use helper template
libfreeradius-client2-dev: helper-templates-in-copyright
1 change: 1 addition & 0 deletions debian/libfreeradius-client2.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
usr/lib/*/*.so.*
4 changes: 4 additions & 0 deletions debian/libfreeradius-client2.lintian-overrides
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# upstream does not provide changelog
libfreeradius-client2: debian-changelog-file-missing-or-wrong-name
# we do use helper template
libfreeradius-client2: helper-templates-in-copyright
2 changes: 0 additions & 2 deletions debian/libradius-ng-dev.dirs

This file was deleted.

4 changes: 0 additions & 4 deletions debian/libradius-ng-dev.files

This file was deleted.

5 changes: 0 additions & 5 deletions debian/libradius-ng.conffiles

This file was deleted.

2 changes: 0 additions & 2 deletions debian/libradius-ng.dirs

This file was deleted.

1 change: 0 additions & 1 deletion debian/libradius-ng.files

This file was deleted.

8 changes: 0 additions & 8 deletions debian/libradius-ng.postinst

This file was deleted.

1 change: 0 additions & 1 deletion debian/libradius-ng.substvars

This file was deleted.

3 changes: 0 additions & 3 deletions debian/postrm

This file was deleted.

2 changes: 0 additions & 2 deletions debian/radiusclient-ng.dirs

This file was deleted.

9 changes: 0 additions & 9 deletions debian/radiusclient-ng.files

This file was deleted.

9 changes: 0 additions & 9 deletions debian/radiusclient-ng.postinst

This file was deleted.

125 changes: 18 additions & 107 deletions debian/rules
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,113 +1,24 @@
#!/usr/bin/make -f
# Made with the aid of dh_make, by Craig Small
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# This version is for a hypothetical package that builds an
# architecture-dependant package, as well as an architecture-independant
# package.
# -*- makefile -*-

package=radiusclient-ng
# get debian distribution codename
DISTRIBUTION=$(shell lsb_release -sc)
# get version from changelog, for string mangling
VERSION=$(shell dpkg-parsechangelog --count 1 --show-field Version)
# add distribution codename to package version
PACKAGEVERSION=$(subst ~,~$(DISTRIBUTION)-,$(VERSION))

version=$(shell expr `pwd` : '.*-\([0-9.]*\)')
version_major=$(shell expr `pwd` : '.*-\([0-9]*\).[0-9.]*')
version_so=2.0.0
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

topdir=$(shell pwd)
# enable dpkg build flags
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
%:
dh $@

build: build-stamp
build-stamp:
dh_testdir

@( \
for link in config.guess config.sub ltmain.sh missing mkinstalldirs; do \
ln -s /usr/share/libtool/$$link $$link; \
done; \
)

./configure --prefix=/usr --sysconfdir=/etc --enable-shadow

rm -f libtool
ln -s /usr/bin/libtool libtool

make

touch build-stamp

clean:
dh_testdir
dh_testroot
rm -f build-stamp

-rm -rf static shared
@( \
for link in config.guess config.sub ltmain.sh missing mkinstalldirs; do \
rm -f $$link; \
done; \
)

# Add here commands to clean up after the build process.
-$(MAKE) distclean

dh_clean

dirs:
dh_installdirs

dh_testdir
dh_testroot

dh_installdocs
dh_installexamples
dh_installmenu
# dh_installmanpages
dh_undocumented login.radius.1 radacct.1 radexample.1 radlogin.1 radstatus.1
dh_installchangelogs

binary-arch: dirs radiusclient-ng libradius-ng libradius-ng-dev
dh_installdeb

dh_strip
dh_compress
dh_fixperms

dh_shlibdeps
dh_gencontrol
dh_makeshlibs -m$(version_so)
dh_md5sums

chmod 600 $(topdir)/debian/tmp/etc/radiusclient-ng/servers
dh_builddeb

radiusclient-ng: build
for file in radacct radexample radlogin radstatus; do \
install -m755 $(topdir)/src/.libs/$$file $(topdir)/debian/tmp/usr/sbin; \
done
install -m755 $(topdir)/login.radius/migs/login.radius $(topdir)/debian/tmp/usr/sbin
for file in issue port-id-map servers; do \
install -m644 $(topdir)/etc/$$file $(topdir)/debian/tmp/etc/radiusclient-ng; \
done

libradius-ng: build
install -m755 $(topdir)/lib/.libs/libfreeradius-client.so.$(version_so) debian/libradius-ng/usr/lib
for file in radiusclient.conf dictionary dictionary.ascend dictionary.compat dictionary.merit; do \
install -m644 $(topdir)/etc/$$file $(topdir)/debian/libradius-ng/etc/radiusclient-ng; \
done
cd debian/libradius-ng/usr/lib && ln -s libfreeradius-client.so.$(version_so) libfreeradius-client.so.2

libradius-ng-dev: build
install -m644 $(topdir)/include/freeradius-client.h $(topdir)/debian/libradius-ng-dev/usr/include
install -m644 $(topdir)/lib/.libs/libfreeradius-client.a $(topdir)/debian/libradius-ng-dev/usr/lib
install -m644 $(topdir)/lib/libfreeradius-client.la $(topdir)/debian/libradius-ng-dev/usr/lib
cd debian/libradius-ng-dev/usr/lib && ln -s libfreeradius-client.so.$(version_so) libfreeradius-client.so

source diff:
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

binary: binary-arch
.PHONY: build clean binary-arch binary radiusclient-ng libradius-ng-dev

# Local variables:
# mode: Makefile
# End:
# setting mangled package version
override_dh_gencontrol:
dh_gencontrol -- -v$(PACKAGEVERSION)
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (quilt)
1 change: 0 additions & 1 deletion debian/substvars

This file was deleted.

5 changes: 0 additions & 5 deletions debian/watch

This file was deleted.