From da7f9947d8b8bf8a934febd5240c25860f042ae2 Mon Sep 17 00:00:00 2001 From: Wichert Akkerman Date: Thu, 16 Dec 1999 23:43:40 +0000 Subject: [PATCH] Makefile.conf.in: use @libdir@ and @admindir@ configure.in: add --with-admindir option and change the default to $libdir/db debian/rules: add --with-admindir=/var/lib/dpkg scripts/debian-changelog-mode.el: update location of GPL scripts/dpkg-name.sh: update location of GPL --- ChangeLog | 9 +++++++++ Makefile.conf.in | 4 ++-- configure.in | 13 +++++++++++++ debian/rules | 3 ++- scripts/debian-changelog-mode.el | 2 +- scripts/dpkg-name.sh | 2 +- 6 files changed, 28 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7fd2caf4..febedacc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +Fri Dec 17 00:41:50 CET 1999 Wichert Akkerman + + * Makefile.conf.in: use @libdir@ and @admindir@ + * configure.in: add --with-admindir option and change the default + to $libdir/db + * debian/rules: add --with-admindir=/var/lib/dpkg + * scripts/debian-changelog-mode.el: update location of GPL + * scripts/dpkg-name.sh: update location of GPL + Thu Dec 16 15:20:11 CET 1999 Wichert Akkerman * utils/start-stop-daemon.c: Fix OS-detection for sunos diff --git a/Makefile.conf.in b/Makefile.conf.in index 05fa4c13..15ae7464 100644 --- a/Makefile.conf.in +++ b/Makefile.conf.in @@ -17,14 +17,14 @@ localedir = $(datadir)/locale bindir = @bindir@ sbindir = @sbindir@ -libdir = $(prefix)/lib +libdir = @libdir@ dpkglibdir = $(libdir)/$(PACKAGE) methodsdir = $(dpkglibdir)/methods parsechangelogdir = $(dpkglibdir)/parsechangelog elispdir = @lispdir@ -admindir = /var/lib/$(PACKAGE) +admindir = @admindir@ mandir = @mandir@ man1dir = $(mandir)/man1 diff --git a/configure.in b/configure.in index ab00fcdf..57a337f6 100644 --- a/configure.in +++ b/configure.in @@ -15,6 +15,19 @@ AC_ARG_WITH(dselect, esac]) AC_SUBST(DSELECTDIR) +admindir="$libdir/db" +AC_ARG_WITH(admindir, +[ --with-admindir=DIR store dpkg database in DIR [LIBDIR/db]], +[case "$withval" in + "" ) + AC_MSG_ERROR(invalid admindir specified) + ;; + * ) + admindir="$withval" + ;; + esac]) +AC_SUBST(admindir) + AC_CHECK_TOOL_PREFIX AC_CANONICAL_SYSTEM diff --git a/debian/rules b/debian/rules index a7da4e5d..ebdbf9cc 100755 --- a/debian/rules +++ b/debian/rules @@ -23,7 +23,8 @@ $(BUILD)/config.status: --infodir=/usr/share/info \ --sysconfdir=/etc \ --sharedstatedir=/var/lib \ - --localstatedir=/var/lib + --localstatedir=/var/lib \ + --with-admindir=/var/lib/dpkg clean: $(checkdir) diff --git a/scripts/debian-changelog-mode.el b/scripts/debian-changelog-mode.el index d6b9fb38..9a73eeb4 100644 --- a/scripts/debian-changelog-mode.el +++ b/scripts/debian-changelog-mode.el @@ -17,7 +17,7 @@ ;; GNU General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License -;; along with your Debian installation, in /usr/doc/copyright/GPL. +;; along with your Debian installation, in /usr/share/common-licenses/GPL. ;; If not, write to the Free Software Foundation, 675 Mass Ave, ;; Cambridge, MA 02139, USA. diff --git a/scripts/dpkg-name.sh b/scripts/dpkg-name.sh index fc4c2371..ac6aec8e 100755 --- a/scripts/dpkg-name.sh +++ b/scripts/dpkg-name.sh @@ -19,7 +19,7 @@ echo "# ${prog} ${version} -- ${purpose} # This is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the file -# /usr/doc/copyright/GPL for more details." +# /usr/share/common-licenses/GPL for more details." } stderr () { -- 2.39.5