import ruby-shadow-2.3.1
This module provides access to shadow passwords on Linux, OSX, FreeBSD, OpenBSD and Solaris. ok aja@
This commit is contained in:
parent
3c9fde475b
commit
c70eb6f363
22
sysutils/ruby-shadow/Makefile
Normal file
22
sysutils/ruby-shadow/Makefile
Normal file
@ -0,0 +1,22 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2013/12/13 07:50:53 jasper Exp $
|
||||
|
||||
COMMENT = module to access shadow passwords
|
||||
|
||||
DISTNAME = ruby-shadow-2.3.1
|
||||
PKGNAME = ${DISTNAME:S/ruby-//}
|
||||
CATEGORIES = sysutils
|
||||
|
||||
MAINTAINER = Jasper Lievisse Adriaanse <jasper@openbsd.org>
|
||||
|
||||
# PD
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
|
||||
MODULES = lang/ruby
|
||||
|
||||
BUILD_DEPENDS = sysutils/e2fsprogs
|
||||
|
||||
WANTLIB = pthread
|
||||
|
||||
CONFIGURE_STYLE = ruby gem ext
|
||||
|
||||
.include <bsd.port.mk>
|
2
sysutils/ruby-shadow/distinfo
Normal file
2
sysutils/ruby-shadow/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (ruby-shadow-2.3.1.gem) = h05eflMVI7OuV+yjqS5YIZODeTeR6wT3dAlZRVlC59I=
|
||||
SIZE (ruby-shadow-2.3.1.gem) = 9216
|
34
sysutils/ruby-shadow/patches/patch-extconf_rb
Normal file
34
sysutils/ruby-shadow/patches/patch-extconf_rb
Normal file
@ -0,0 +1,34 @@
|
||||
$OpenBSD: patch-extconf_rb,v 1.1.1.1 2013/12/13 07:50:53 jasper Exp $
|
||||
|
||||
From d8c613cdb17edf9628fa10569ba31562fae67fcf Mon Sep 17 00:00:00 2001
|
||||
From: Adam Palmblad <adam.palmblad@teampages.com>
|
||||
Date: Fri, 15 Nov 2013 09:46:05 -0800
|
||||
Subject: [PATCH] Attempt to resolve BSD make issues.
|
||||
|
||||
Add OpenBSD support.
|
||||
|
||||
--- extconf.rb.orig Thu Jan 1 01:00:00 1970
|
||||
+++ extconf.rb Thu Dec 12 21:42:09 2013
|
||||
@@ -16,7 +16,7 @@ $CFLAGS = case RUBY_VERSION
|
||||
implementation = case CONFIG['host_os']
|
||||
when /linux/i; 'shadow'
|
||||
when /sunos|solaris/i; 'shadow'
|
||||
- when /freebsd/i; 'pwd'
|
||||
+ when /freebsd|openbsd/i; 'pwd'
|
||||
when /darwin/i; 'pwd'
|
||||
else; nil
|
||||
"This library works on OS X, FreeBSD, Solaris and Linux."
|
||||
@@ -59,8 +59,11 @@ else
|
||||
ok = false
|
||||
end
|
||||
|
||||
+have_header( "ruby/io.h")
|
||||
+
|
||||
if ok
|
||||
+
|
||||
create_makefile("shadow", implementation)
|
||||
else
|
||||
raise "You are missing some of the required functions from either shadow.h on Linux/Solaris, or pwd.h on FreeBSD/OS X."
|
||||
-end
|
||||
\ No newline at end of file
|
||||
+end
|
20
sysutils/ruby-shadow/patches/patch-pwd_depend
Normal file
20
sysutils/ruby-shadow/patches/patch-pwd_depend
Normal file
@ -0,0 +1,20 @@
|
||||
$OpenBSD: patch-pwd_depend,v 1.1.1.1 2013/12/13 07:50:53 jasper Exp $
|
||||
|
||||
From d8c613cdb17edf9628fa10569ba31562fae67fcf Mon Sep 17 00:00:00 2001
|
||||
From: Adam Palmblad <adam.palmblad@teampages.com>
|
||||
Date: Fri, 15 Nov 2013 09:46:05 -0800
|
||||
Subject: [PATCH] Attempt to resolve BSD make issues.
|
||||
|
||||
--- pwd/depend.orig Thu Jan 1 01:00:00 1970
|
||||
+++ pwd/depend Thu Dec 12 21:41:53 2013
|
||||
@@ -1,9 +1 @@
|
||||
-ifneq (,$(findstring 1.9,$(ruby_version)))
|
||||
- io_lib=$(hdrdir)/ruby/ruby/io.h
|
||||
- hdr=$(hdrdir)/ruby/ruby.h
|
||||
-else
|
||||
- io_lib=$(hdrdir)/ruby/rubyio.h
|
||||
- hdr=$(hdrdir)/ruby.h
|
||||
-endif
|
||||
-
|
||||
-shadow.o: shadow.c $(hdr) $(io_lib)
|
||||
+shadow.o: shadow.c
|
20
sysutils/ruby-shadow/patches/patch-pwd_shadow_c
Normal file
20
sysutils/ruby-shadow/patches/patch-pwd_shadow_c
Normal file
@ -0,0 +1,20 @@
|
||||
$OpenBSD: patch-pwd_shadow_c,v 1.1.1.1 2013/12/13 07:50:53 jasper Exp $
|
||||
|
||||
From d8c613cdb17edf9628fa10569ba31562fae67fcf Mon Sep 17 00:00:00 2001
|
||||
From: Adam Palmblad <adam.palmblad@teampages.com>
|
||||
Date: Fri, 15 Nov 2013 09:46:05 -0800
|
||||
Subject: [PATCH] Attempt to resolve BSD make issues.
|
||||
|
||||
--- pwd/shadow.c.orig Thu Jan 1 01:00:00 1970
|
||||
+++ pwd/shadow.c Thu Dec 12 21:41:53 2013
|
||||
@@ -17,8 +17,8 @@
|
||||
#define PWTYPE struct passwd
|
||||
|
||||
#include "ruby.h"
|
||||
-#ifdef RUBY19
|
||||
-#include <ruby/io.h>
|
||||
+#ifdef HAVE_RUBY_IO_H
|
||||
+#include "ruby/io.h"
|
||||
#else
|
||||
#include "rubyio.h"
|
||||
#endif
|
20
sysutils/ruby-shadow/patches/patch-shadow_depend
Normal file
20
sysutils/ruby-shadow/patches/patch-shadow_depend
Normal file
@ -0,0 +1,20 @@
|
||||
$OpenBSD: patch-shadow_depend,v 1.1.1.1 2013/12/13 07:50:53 jasper Exp $
|
||||
|
||||
From d8c613cdb17edf9628fa10569ba31562fae67fcf Mon Sep 17 00:00:00 2001
|
||||
From: Adam Palmblad <adam.palmblad@teampages.com>
|
||||
Date: Fri, 15 Nov 2013 09:46:05 -0800
|
||||
Subject: [PATCH] Attempt to resolve BSD make issues.
|
||||
|
||||
--- shadow/depend.orig Thu Jan 1 01:00:00 1970
|
||||
+++ shadow/depend Thu Dec 12 21:41:53 2013
|
||||
@@ -1,9 +1 @@
|
||||
-ifneq (,$(findstring 1.9,$(ruby_version)))
|
||||
- io_lib=$(hdrdir)/ruby/ruby/io.h
|
||||
- hdr=$(hdrdir)/ruby/ruby.h
|
||||
-else
|
||||
- io_lib=$(hdrdir)/ruby/rubyio.h
|
||||
- hdr=$(hdrdir)/ruby.h
|
||||
-endif
|
||||
-
|
||||
-shadow.o: shadow.c $(hdr) $(io_lib)
|
||||
+shadow.o: shadow.c
|
20
sysutils/ruby-shadow/patches/patch-shadow_shadow_c
Normal file
20
sysutils/ruby-shadow/patches/patch-shadow_shadow_c
Normal file
@ -0,0 +1,20 @@
|
||||
$OpenBSD: patch-shadow_shadow_c,v 1.1.1.1 2013/12/13 07:50:53 jasper Exp $
|
||||
|
||||
From d8c613cdb17edf9628fa10569ba31562fae67fcf Mon Sep 17 00:00:00 2001
|
||||
From: Adam Palmblad <adam.palmblad@teampages.com>
|
||||
Date: Fri, 15 Nov 2013 09:46:05 -0800
|
||||
Subject: [PATCH] Attempt to resolve BSD make issues.
|
||||
|
||||
--- shadow/shadow.c.orig Thu Jan 1 01:00:00 1970
|
||||
+++ shadow/shadow.c Thu Dec 12 21:41:53 2013
|
||||
@@ -9,8 +9,8 @@
|
||||
|
||||
#include <shadow.h>
|
||||
#include "ruby.h"
|
||||
-#ifdef RUBY19
|
||||
-#include <ruby/io.h>
|
||||
+#ifdef HAVE_RUBY_IO_H
|
||||
+#include "ruby/io.h"
|
||||
#else
|
||||
#include "rubyio.h"
|
||||
#endif
|
2
sysutils/ruby-shadow/pkg/DESCR
Normal file
2
sysutils/ruby-shadow/pkg/DESCR
Normal file
@ -0,0 +1,2 @@
|
||||
This module provides access to shadow passwords on Linux, OSX, FreeBSD,
|
||||
OpenBSD and Solaris.
|
23
sysutils/ruby-shadow/pkg/PLIST
Normal file
23
sysutils/ruby-shadow/pkg/PLIST
Normal file
@ -0,0 +1,23 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/12/13 07:50:53 jasper Exp $
|
||||
${GEM_LIB}/cache/${DISTNAME}.gem
|
||||
${GEM_LIB}/gems/${DISTNAME}/
|
||||
${GEM_LIB}/gems/${DISTNAME}/HISTORY
|
||||
${GEM_LIB}/gems/${DISTNAME}/LICENSE
|
||||
${GEM_LIB}/gems/${DISTNAME}/MANIFEST
|
||||
${GEM_LIB}/gems/${DISTNAME}/Makefile
|
||||
${GEM_LIB}/gems/${DISTNAME}/README
|
||||
${GEM_LIB}/gems/${DISTNAME}/README.euc
|
||||
${GEM_LIB}/gems/${DISTNAME}/extconf.rb
|
||||
${GEM_LIB}/gems/${DISTNAME}/lib/
|
||||
${GEM_LIB}/gems/${DISTNAME}/lib/shadow.so
|
||||
${GEM_LIB}/gems/${DISTNAME}/mkmf.log
|
||||
${GEM_LIB}/gems/${DISTNAME}/pwd/
|
||||
${GEM_LIB}/gems/${DISTNAME}/pwd/depend
|
||||
${GEM_LIB}/gems/${DISTNAME}/pwd/shadow.c
|
||||
${GEM_LIB}/gems/${DISTNAME}/ruby-shadow.gemspec
|
||||
${GEM_LIB}/gems/${DISTNAME}/shadow/
|
||||
${GEM_LIB}/gems/${DISTNAME}/shadow.o
|
||||
${GEM_LIB}/gems/${DISTNAME}/shadow.so
|
||||
${GEM_LIB}/gems/${DISTNAME}/shadow/depend
|
||||
${GEM_LIB}/gems/${DISTNAME}/shadow/shadow.c
|
||||
${GEM_LIB}/specifications/${DISTNAME}.gemspec
|
Loading…
Reference in New Issue
Block a user