]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Debian: Install default /etc/pam.d/ngircd allowing all logins
authorAlexander Barton <alex@barton.de>
Tue, 26 Oct 2010 22:43:02 +0000 (00:43 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 26 Oct 2010 22:43:02 +0000 (00:43 +0200)
This is required for backwards compatibility when installing the -full
or -full-dbg package variant: PAM is enabled now but no configuration
present, so all login attempts would be denied ...

Creating /etc/pam.d/ngircd including "auth required pam_permit.so"
restores the old behaviour of allowing all connections.

contrib/Debian/Makefile.am
contrib/Debian/changelog
contrib/Debian/ngircd.pam [new file with mode: 0644]
contrib/Debian/rules

index b20da9980312a20bc54b84092a3c235a5f430f36..dd7c7534e2317aa6cedf6c653e82cff9e5abe1f0 100644 (file)
@@ -1,6 +1,6 @@
 #
 # ngIRCd -- The Next Generation IRC Daemon
-# Copyright (c)2001-2009 Alexander Barton (alex@barton.de)
+# Copyright (c)2001-2010 Alexander Barton (alex@barton.de)
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -10,7 +10,7 @@
 #
 
 EXTRA_DIST = rules changelog compat control copyright \
-       ngircd.init ngircd.default ngircd.postinst
+       ngircd.init ngircd.default ngircd.pam ngircd.postinst
 
 maintainer-clean-local:
        rm -f Makefile Makefile.in
index f81854c2981f17de35d53885704ce9642b4551b1..395c17a19dfd6c912f3cceb45d52561b2e6bbf7e 100644 (file)
@@ -1,3 +1,10 @@
+ngircd (17~rc2-0ab2) unstable; urgency=low
+
+  * Install /etc/pam.d/ngircd including "auth required pam_permit.so" when
+    installing -full or -full-dbg variant to keep backwards compatibility.
+
+ -- Alexander Barton <alex@barton.de>  Tue, 26 Oct 2010 23:34:56 +0200
+
 ngircd (17~rc2-0ab1) unstable; urgency=low
 
   * New "upstream" release candidate 2 for ngIRCd Release 17.
diff --git a/contrib/Debian/ngircd.pam b/contrib/Debian/ngircd.pam
new file mode 100644 (file)
index 0000000..4468e56
--- /dev/null
@@ -0,0 +1,4 @@
+# /etc/pam.d/ngircd
+
+# allow all connections to ngIRCd
+auth required pam_permit.so
index 25f48287936632c4d68ebb9cb75e6ee587778a34..868a04250a09d70d37a952c24d5cff545b268a3a 100755 (executable)
@@ -163,6 +163,8 @@ install-ngircd-full: build-ngircd-full
         sed -e "s/;PidFile = \/var\/run\/ngircd\/ngircd.pid/PidFile = \/var\/run\/ircd\/ngircd.pid/g" \
         >$(CURDIR)/debian/ngircd-full/etc/ngircd/ngircd.conf
        touch $(CURDIR)/debian/ngircd-full/etc/ngircd/ngircd.motd
+       mkdir -p $(CURDIR)/debian/ngircd-full/etc/pam.d
+       cp $(CURDIR)/debian/ngircd.pam $(CURDIR)/debian/ngircd-full/etc/pam.d/ngircd
 
 install-ngircd-full-dbg: build-ngircd-full-dbg
        dh_testdir
@@ -183,6 +185,8 @@ install-ngircd-full-dbg: build-ngircd-full-dbg
         sed -e "s/;PidFile = \/var\/run\/ngircd\/ngircd.pid/PidFile = \/var\/run\/ircd\/ngircd.pid/g" \
         >$(CURDIR)/debian/ngircd-full-dbg/etc/ngircd/ngircd.conf
        touch $(CURDIR)/debian/ngircd-full-dbg/etc/ngircd/ngircd.motd
+       mkdir -p $(CURDIR)/debian/ngircd-full-dbg/etc/pam.d
+       cp $(CURDIR)/debian/ngircd.pam $(CURDIR)/debian/ngircd-full-dbg/etc/pam.d/ngircd
 
 # Build architecture-independent files here.
 binary-indep: