]> arthur.barton.de Git - ngircd-alex.git/blobdiff - contrib/Debian/rules
Implement METADATA command to update client metadata
[ngircd-alex.git] / contrib / Debian / rules
index 5f6f826e6d39e4083358d994e688038aa4f81f20..0aecde56e00ee6640b5155eab2c2a3974a908fb2 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/make -f
 #
 # ngIRCd -- The Next Generation IRC Daemon
-# Copyright (c)2001-2009 Alexander Barton <alex@barton.de>
+# Copyright (c)2001-2012 Alexander Barton (alex@barton.de) and Contributors
 #
 # 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
@@ -53,7 +53,8 @@ configure-ngircd-full: configure
          --sysconfdir=/etc/ngircd \
          --mandir=\$${prefix}/share/man \
          --with-syslog --with-zlib \
-         --with-gnutls --with-ident --with-tcp-wrappers \
+         --with-gnutls --with-iconv --with-ident --with-tcp-wrappers \
+         --with-pam \
          --enable-ipv6
 
 configure-ngircd-full-dbg: configure
@@ -66,7 +67,8 @@ configure-ngircd-full-dbg: configure
          --mandir=\$${prefix}/share/man \
          --enable-debug --enable-sniffer \
          --with-syslog --with-zlib \
-         --with-gnutls --with-ident --with-tcp-wrappers \
+         --with-gnutls --with-iconv --with-ident --with-tcp-wrappers \
+         --with-pam \
          --enable-ipv6
 
 build:
@@ -163,6 +165,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 +187,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: