diff options
-rw-r--r-- | src/gns/nss/Makefile.am | 16 | ||||
-rwxr-xr-x | src/gns/nss/install-nss-plugin.sh | 5 | ||||
-rw-r--r-- | src/gns/nss/nss_gns.c | 4 | ||||
-rw-r--r-- | src/gns/nss/nss_gns_query.c | 19 | ||||
-rw-r--r-- | src/gns/nss/nss_gns_query.h | 43 | ||||
-rwxr-xr-x | src/gns/nss/uninstall-nss-plugin.sh | 8 |
6 files changed, 56 insertions, 39 deletions
diff --git a/src/gns/nss/Makefile.am b/src/gns/nss/Makefile.am index f658832b89..0569fce7d3 100644 --- a/src/gns/nss/Makefile.am +++ b/src/gns/nss/Makefile.am @@ -3,8 +3,8 @@ # This file taken and modified from nss-gns. # # nss-gns is free software; you can redistribute it and/or modify it -# under the terms of the GNU Lesser General Public License as -# published by the Free Software Foundation; either version 2 of the +# under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 3 of the # License, or (at your option) any later version. # # nss-gns is distributed in the hope that it will be useful, but @@ -52,17 +52,11 @@ libnss_gns6_la_CFLAGS=$(libnss_gns_la_CFLAGS) -DNSS_IPV6_ONLY=1 libnss_gns6_la_LDFLAGS=$(libnss_gns_la_LDFLAGS) if !MINGW -if HAVE_SUDO install-data-hook: $(top_srcdir)/src/gns/nss/install-nss-plugin.sh $(SHELL) $(top_builddir) $(nssdir) $(SUDO_BINARY) uninstall-hook: - $(top_srcdir)/src/gns/nss/uninstall-nss-plugin.sh $(SUDO_BINARY) $(nssdir) - -endif -else -install-data-hook: - -uninstall-hook: - + $(top_srcdir)/src/gns/nss/uninstall-nss-plugin.sh $(SHELL) $(top_builddir) "rm -f $(nssdir)/libnss_gns.so.2" $(SUDO_BINARY) + $(top_srcdir)/src/gns/nss/uninstall-nss-plugin.sh $(SHELL) $(top_builddir) "rm -f $(nssdir)/libnss_gns4.so.2" $(SUDO_BINARY) + $(top_srcdir)/src/gns/nss/uninstall-nss-plugin.sh $(SHELL) $(top_builddir) "rm -f $(nssdir)/libnss_gns6.so.2" $(SUDO_BINARY) endif diff --git a/src/gns/nss/install-nss-plugin.sh b/src/gns/nss/install-nss-plugin.sh index 293786bc50..c87db763c1 100755 --- a/src/gns/nss/install-nss-plugin.sh +++ b/src/gns/nss/install-nss-plugin.sh @@ -3,7 +3,6 @@ # $2 - top_builddir # $3 - nssdir # $4 - sudo binary (empty if root) -$4 $1 $2/libtool --finish $3 +$4 $1 $2/libtool --mode=finish $3 +echo LTINST: $4 $1 $2/libtool --mode=finish $3 $4 rm -f $3/libnss_gns.la $3/libnss_gns4.la $3/libnss_gns6.la - - diff --git a/src/gns/nss/nss_gns.c b/src/gns/nss/nss_gns.c index e48e4206c4..ce9dcf34d4 100644 --- a/src/gns/nss/nss_gns.c +++ b/src/gns/nss/nss_gns.c @@ -4,8 +4,8 @@ Parts taken from: nss.c in nss-mdns nss-mdns is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as published - by the Free Software Foundation; either version 2 of the License, + it under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. nss-mdns is distributed in the hope that it will be useful, but1 diff --git a/src/gns/nss/nss_gns_query.c b/src/gns/nss/nss_gns_query.c index 11356c2160..b8f6c164de 100644 --- a/src/gns/nss/nss_gns_query.c +++ b/src/gns/nss/nss_gns_query.c @@ -1,3 +1,22 @@ +/* + This file is part of GNUnet. + (C) 2012 Christian Grothoff (and other contributing authors) + + GNUnet is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3, or (at your + option) any later version. + + GNUnet 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 GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GNUnet; see the file COPYING. If not, write to the + Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. +*/ #include <string.h> #include <stdio.h> #include <stdlib.h> diff --git a/src/gns/nss/nss_gns_query.h b/src/gns/nss/nss_gns_query.h index 0b4dae5e74..65b0311fe3 100644 --- a/src/gns/nss/nss_gns_query.h +++ b/src/gns/nss/nss_gns_query.h @@ -1,31 +1,28 @@ +/* + This file is part of GNUnet. + (C) 2012 Christian Grothoff (and other contributing authors) + + GNUnet is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 3, or (at your + option) any later version. + + GNUnet 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 GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GNUnet; see the file COPYING. If not, write to the + Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. +*/ #ifndef NSS_GNS_QUERY_H #define NSS_GNS_QUERY_H /** - * Parts taken from nss-mdns. Original license statement follows + * Parts taken from nss-mdns */ - -/* $Id$ */ - -/*** - This file is part of nss-mdns. - - nss-mdns is free software; you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as - published by the Free Software Foundation; either version 2 of the - License, or (at your option) any later version. - - nss-mdns 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 GNU - General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with nss-mdns; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 - USA. -***/ - #include <inttypes.h> /* Maximum number of entries to return */ diff --git a/src/gns/nss/uninstall-nss-plugin.sh b/src/gns/nss/uninstall-nss-plugin.sh new file mode 100755 index 0000000000..61c8eff86a --- /dev/null +++ b/src/gns/nss/uninstall-nss-plugin.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# $1 - shell +# $2 - top_builddir +# $3 - nssdir+path of library to remove +# $4 - sudo binary (empty if root) +$4 $1 $2/libtool --mode=uninstall $3 + + |