--- libshadow-ruby-1.4.1.orig/shadow.c +++ libshadow-ruby-1.4.1/shadow.c @@ -60,7 +60,7 @@ INT2FIX(entry->sp_inact), INT2FIX(entry->sp_expire), INT2FIX(entry->sp_flag), - 0); + NULL); free(entry); return result; }; @@ -89,7 +89,7 @@ INT2FIX(entry->sp_inact), INT2FIX(entry->sp_expire), INT2FIX(entry->sp_flag), - 0); + NULL); return result; }; @@ -114,7 +114,7 @@ INT2FIX(entry->sp_inact), INT2FIX(entry->sp_expire), INT2FIX(entry->sp_flag), - 0); + NULL); return result; }; @@ -142,7 +142,7 @@ INT2FIX(entry->sp_inact), INT2FIX(entry->sp_expire), INT2FIX(entry->sp_flag), - 0); + NULL); return result; }; @@ -254,10 +254,10 @@ rb_sPasswdEntry = rb_struct_define("PasswdEntry", "sp_namp","sp_pwdp","sp_lstchg", "sp_min","sp_max","sp_warn", - "sp_inact","sp_expire","sp_flag",0); + "sp_inact","sp_expire","sp_flag",NULL); rb_sGroupEntry = rb_struct_define("GroupEntry", "sg_name","sg_passwd", - "sg_adm","sg_mem",0); + "sg_adm","sg_mem",NULL); rb_mShadow = rb_define_module("Shadow"); rb_eFileLock = rb_define_class_under(rb_mShadow,"FileLock",rb_eException); --- libshadow-ruby-1.4.1.orig/depend +++ libshadow-ruby-1.4.1/depend @@ -1 +0,0 @@ -shadow.o : shadow.c $(hdrdir)/ruby.h $(hdrdir)/rubyio.h --- libshadow-ruby-1.4.1.orig/Makefile +++ libshadow-ruby-1.4.1/Makefile @@ -0,0 +1,67 @@ +SHELL = /bin/sh +#### Start of system configuration section. #### +srcdir = . +topdir = $(rubylibdir)/$(arch) +hdrdir = $(rubylibdir)/$(arch) +VPATH = $(srcdir) +CC = gcc +CFLAGS = -fPIC -fPIC +CPPFLAGS = -I$(hdrdir) -I$(prefix)/include -DHAVE_GETSPENT -DHAVE_SGETSPENT -DHAVE_FGETSPENT -DHAVE_SETSPENT -DHAVE_ENDSPENT -DHAVE_LCKPWDF -DHAVE_ULCKPWDF +CXXFLAGS = $(CFLAGS) +DLDFLAGS = -L$(exec_prefix)/lib +LDSHARED = gcc -shared +LIBPATH = +RUBY_INSTALL_NAME = ruby +RUBY_SO_NAME = +arch = i386-linux +ruby_version = 1.6 + +prefix = $(DESTDIR)/usr +exec_prefix = $(prefix) +libdir = $(exec_prefix)/lib +rubylibdir = $(libdir)/ruby/$(ruby_version) +archdir = $(rubylibdir)/$(arch) +sitedir = /usr/local/lib/site_ruby +sitelibdir = $(sitedir)/$(ruby_version) +sitearchdir = $(sitelibdir)/$(arch) +target_prefix = +#### End of system configuration section. #### +LOCAL_LIBS = +LIBS = -L. -l$(RUBY_INSTALL_NAME) -lc +OBJS = shadow.o +TARGET = shadow +DLLIB = $(TARGET).so +RUBY = ruby +RM = $(RUBY) -rftools -e "File::rm_f(*ARGV.map{|x|Dir[x]}.flatten.uniq)" +EXEEXT = +all: $(DLLIB) +clean:; @$(RM) *.o *.so *.sl *.a $(DLLIB) + @$(RM) $(TARGET).lib $(TARGET).exp $(TARGET).ilk *.pdb $(CLEANFILES) +distclean: clean + @$(RM) Makefile extconf.h conftest.* mkmf.log + @$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES) +realclean: distclean +install: $(archdir)$(target_prefix)/$(DLLIB) +site-install: $(sitearchdir)$(target_prefix)/$(DLLIB) +$(archdir)$(target_prefix)/$(DLLIB): $(DLLIB) + @$(RUBY) -r ftools -e 'File::makedirs(*ARGV)' $(rubylibdir) $(archdir)$(target_prefix) + @$(RUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0555, true)' $(DLLIB) $(archdir)$(target_prefix)/$(DLLIB) + +$(sitearchdir)$(target_prefix)/$(DLLIB): $(DLLIB) + @$(RUBY) -r ftools -e 'File::makedirs(*ARGV)' $(libdir) $(sitearchdir)$(target_prefix) + @$(RUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0555, true)' $(DLLIB) $(sitearchdir)$(target_prefix)/$(DLLIB) + + +.c.o: + $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< +.cc.o: + $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $@ $< +.cpp.o: + $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $@ $< +.cxx.o: + $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $@ $< +.C.o: + $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c -o $@ $< +$(DLLIB): $(OBJS) + $(LDSHARED) $(DLDFLAGS) -o $(DLLIB) $(OBJS) $(LIBS) $(LOCAL_LIBS) +### --- libshadow-ruby-1.4.1.orig/debian/compat +++ libshadow-ruby-1.4.1/debian/compat @@ -0,0 +1 @@ +4 --- libshadow-ruby-1.4.1.orig/debian/copyright +++ libshadow-ruby-1.4.1/debian/copyright @@ -0,0 +1,73 @@ +This package was debianized by akira yamada akira@debian.org on +Fri, 22 Jan 1999 18:28:47 +0900. + +It was downloaded from . + +Copyright: + +Same as Ruby's License. + +Ruby's License: + +Ruby is copyrighted free software by Yukihiro Matsumoto . +You can redistribute it and/or modify it under either the terms of the GPL +(see the file GPL), or the conditions below: + + 1. You may make and give away verbatim copies of the source form of the + software without restriction, provided that you duplicate all of the + original copyright notices and associated disclaimers. + + 2. You may modify your copy of the software in any way, provided that + you do at least ONE of the following: + + a) place your modifications in the Public Domain or otherwise + make them Freely Available, such as by posting said + modifications to Usenet or an equivalent medium, or by allowing + the author to include your modifications in the software. + + b) use the modified software only within your corporation or + organization. + + c) give non-standard binaries non-standard names, with + instructions on where to get the original software distribution. + + d) make other distribution arrangements with the author. + + 3. You may distribute the software in object code or binary form, + provided that you do at least ONE of the following: + + a) distribute the binaries and library files of the software, + together with instructions (in the manual page or equivalent) + on where to get the original distribution. + + b) accompany the distribution with the machine-readable source of + the software. + + c) give non-standard binaries non-standard names, with + instructions on where to get the original software distribution. + + d) make other distribution arrangements with the author. + + 4. You may modify and include the part of the software into any other + software (possibly commercial). But some files in the distribution + are not written by the author, so that they are not under these terms. + + For the list of those files and their copying conditions, see the + file LEGAL. + + 5. The scripts and library files supplied as input to or produced as + output from the software do not automatically fall under the + copyright of the software, but belong to whomever generated them, + and may be sold commercially, and may be aggregated with this + software. + + 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED + WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + PURPOSE. + +GNU General Public License: + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + --- libshadow-ruby-1.4.1.orig/debian/rules +++ libshadow-ruby-1.4.1/debian/rules @@ -0,0 +1,81 @@ +#!/usr/bin/make -f +# -*- mode: makefile; -*- +# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +#export DH_COMPAT=3 + +build: build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + rm -rf build-tree-1.8 + mkdir build-tree-1.8 + + ruby1.8 -C build-tree-1.8 ../extconf.rb + $(MAKE) -C build-tree-1.8 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp install-stamp + + # Add here commands to clean up after the build process. + -rm -rf build-tree-1.8 + + dh_clean + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp. + #$(MAKE) prefix=`pwd`/debian/tmp/usr install + $(MAKE) -C build-tree-1.8 sitedir=$(CURDIR)/debian/libshadow-ruby1.8/usr/lib/ruby install + + touch install-stamp + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install +# dh_testversion + dh_testdir + dh_testroot + dh_installdocs -A HISTORY README* +# dh_installexamples +# dh_installmenu +# dh_installemacsen +# dh_installpam +# dh_installinit +# dh_installcron +# dh_installmanpages +# dh_undocumented + dh_installchangelogs + dh_link + dh_strip + dh_compress -X.rb -X.pl -X.py -X.scm -X.awk -X.dat + dh_fixperms +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- libshadow-ruby-1.4.1.orig/debian/control +++ libshadow-ruby-1.4.1/debian/control @@ -0,0 +1,15 @@ +Source: libshadow-ruby +Section: interpreters +Priority: optional +Maintainer: akira yamada +Build-Depends: debhelper (>> 3), ruby1.8, ruby1.8-dev +Standards-Version: 3.6.1 + +Package: libshadow-ruby1.8 +Architecture: any +Depends: ${shlibs:Depends} +Description: Interface of shadow password for Ruby 1.8 + This is a module which used when you access Linux shadow password files + from Ruby. + . + This package provides library files for Ruby 1.8. --- libshadow-ruby-1.4.1.orig/debian/changelog +++ libshadow-ruby-1.4.1/debian/changelog @@ -0,0 +1,92 @@ +libshadow-ruby (1.4.1-8build1) lucid; urgency=low + + * rebuild rest of main for armel armv7/thumb2 optimization; + UbuntuSpec:mobile-lucid-arm-gcc-v7-thumb2 + + -- Alexander Sack Sat, 06 Mar 2010 13:37:02 +0100 + +libshadow-ruby (1.4.1-8) unstable; urgency=medium + + * applied patch from Kostas Georgiou (the Fedora maintainer for + shadow-ruby) to shadow.c: rb_struct_new expects NULL (!=0) for + termination. Thanks: Matthew Palmer. (closes: 425234) + + -- akira yamada Fri, 05 Oct 2007 09:25:23 +0900 + +libshadow-ruby (1.4.1-7) unstable; urgency=low + + * dropped ruby1.6 support. (Closes: #367914) + + -- akira yamada Tue, 23 May 2006 15:19:48 +0900 + +libshadow-ruby (1.4.1-6) unstable; urgency=low + + * build with ruby1.6 and ruby1.8. (closes: #212268) + * renamed to libshadow-ruby1.6 from libshadow-ruby. + * updated description. (closes: #210091) + + -- akira yamada Thu, 11 Dec 2003 15:20:56 +0900 + +libshadow-ruby (1.4.1-5) unstable; urgency=low + + * rebuild with correct version of libruby. + + -- akira yamada Sun, 16 Sep 2001 14:14:22 +0900 + +libshadow-ruby (1.4.1-4) unstable; urgency=low + + * removed incorrect dependency in Makefile, closes: #111409. + + -- akira yamada Sun, 9 Sep 2001 10:21:13 +0900 + +libshadow-ruby (1.4.1-3) unstable; urgency=low + + * debian/rules: libdir and archdir is bad value when using + ruby 1.6.4 or later. fixed it, closes: #107718. + + -- akira yamada Fri, 24 Aug 2001 15:34:07 +0900 + +libshadow-ruby (1.4.1-2) unstable; urgency=low + + * rebuild with ruby_1.6.2-5. + + -- akira yamada Thu, 25 Jan 2001 22:59:02 +0900 + +libshadow-ruby (1.4.1-1) unstable; urgency=low + + * Upgraded to new upstream version. + * Updated Standards-Version to 3.2.1. + * Added Build-Depends field into control file. + + -- akira yamada Fri, 1 Sep 2000 18:10:49 +0900 + +libshadow-ruby (1.4-3) unstable; urgency=low + + * Rebuild with ruby_1.4.4. + + -- akira yamada Tue, 4 Apr 2000 21:08:08 +0900 + +libshadow-ruby (1.4-2) unstable; urgency=low + + * FHS complience. + + -- akira yamada Thu, 21 Oct 1999 23:09:06 +0900 + +libshadow-ruby (1.4-1) unstable; urgency=low + + * Upgraded to new upstream version. + + -- akira yamada Fri, 27 Aug 1999 11:48:25 +0900 + +ruby-shadow-module (1.2-2) unstable; urgency=low + + * Build with ruby1.2_1.2.2. + + -- akira yamada Mon, 1 Feb 1999 14:53:55 +0900 + +ruby-shadow-module (1.2-1) unstable; urgency=low + + * Initial Release. + + -- akira yamada Fri, 22 Jan 1999 18:28:47 +0900 +