solaris-file 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/Makefile +149 -0
- data/ext/extconf.rb +2 -3
- data/ext/file.so +0 -0
- data/ext/mkmf.log +13 -0
- data/ext/sfile.o +0 -0
- data/ext/solaris/file.so +0 -0
- data/ext/solaris/sfile.c +1 -1
- data/ext/solaris/sfile.h +1 -1
- data/test/tc_solaris_file.rb +2 -2
- metadata +49 -37
data/ext/Makefile
ADDED
@@ -0,0 +1,149 @@
|
|
1
|
+
|
2
|
+
SHELL = /bin/sh
|
3
|
+
|
4
|
+
#### Start of system configuration section. ####
|
5
|
+
|
6
|
+
srcdir = solaris
|
7
|
+
topdir = /usr/local/lib/ruby/1.8/sparc-solaris2.10
|
8
|
+
hdrdir = $(topdir)
|
9
|
+
VPATH = $(srcdir):$(topdir):$(hdrdir)
|
10
|
+
prefix = $(DESTDIR)/usr/local
|
11
|
+
exec_prefix = $(prefix)
|
12
|
+
sitedir = $(prefix)/lib/ruby/site_ruby
|
13
|
+
rubylibdir = $(libdir)/ruby/$(ruby_version)
|
14
|
+
docdir = $(datarootdir)/doc/$(PACKAGE)
|
15
|
+
dvidir = $(docdir)
|
16
|
+
datarootdir = $(prefix)/share
|
17
|
+
archdir = $(rubylibdir)/$(arch)
|
18
|
+
sbindir = $(exec_prefix)/sbin
|
19
|
+
psdir = $(docdir)
|
20
|
+
localedir = $(datarootdir)/locale
|
21
|
+
htmldir = $(docdir)
|
22
|
+
datadir = $(datarootdir)
|
23
|
+
includedir = $(prefix)/include
|
24
|
+
infodir = $(datarootdir)/info
|
25
|
+
sysconfdir = $(prefix)/etc
|
26
|
+
mandir = $(datarootdir)/man
|
27
|
+
libdir = $(exec_prefix)/lib
|
28
|
+
sharedstatedir = $(prefix)/com
|
29
|
+
oldincludedir = $(DESTDIR)/usr/include
|
30
|
+
pdfdir = $(docdir)
|
31
|
+
sitearchdir = $(sitelibdir)/$(sitearch)
|
32
|
+
bindir = $(exec_prefix)/bin
|
33
|
+
localstatedir = $(prefix)/var
|
34
|
+
sitelibdir = $(sitedir)/$(ruby_version)
|
35
|
+
libexecdir = $(exec_prefix)/libexec
|
36
|
+
|
37
|
+
CC = cc
|
38
|
+
LIBRUBY = $(LIBRUBY_A)
|
39
|
+
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
|
40
|
+
LIBRUBYARG_SHARED = -R $(libdir) -L$(libdir)
|
41
|
+
LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
|
42
|
+
|
43
|
+
RUBY_EXTCONF_H =
|
44
|
+
CFLAGS = -KPIC -dalign -fns -xbuiltin=%all -xlibmil -xtarget=ultra2e -xO5 -xipo
|
45
|
+
INCFLAGS = -I. -I. -I/usr/local/lib/ruby/1.8/sparc-solaris2.10 -I. -Isolaris -Isolaris
|
46
|
+
CPPFLAGS =
|
47
|
+
CXXFLAGS = $(CFLAGS)
|
48
|
+
DLDFLAGS = -L.
|
49
|
+
LDSHARED = ld -G
|
50
|
+
AR = ar
|
51
|
+
EXEEXT =
|
52
|
+
|
53
|
+
RUBY_INSTALL_NAME = ruby
|
54
|
+
RUBY_SO_NAME = ruby
|
55
|
+
arch = sparc-solaris2.10
|
56
|
+
sitearch = sparc-solaris2.10
|
57
|
+
ruby_version = 1.8
|
58
|
+
ruby = /usr/local/bin/ruby
|
59
|
+
RUBY = $(ruby)
|
60
|
+
RM = rm -f
|
61
|
+
MAKEDIRS = mkdir -p
|
62
|
+
INSTALL = /opt/csw/bin/ginstall -c
|
63
|
+
INSTALL_PROG = $(INSTALL) -m 0755
|
64
|
+
INSTALL_DATA = $(INSTALL) -m 644
|
65
|
+
COPY = cp
|
66
|
+
|
67
|
+
#### End of system configuration section. ####
|
68
|
+
|
69
|
+
preload =
|
70
|
+
|
71
|
+
libpath = . $(libdir)
|
72
|
+
LIBPATH = -L'.' -L'$(libdir)' -R'$(libdir)'
|
73
|
+
DEFFILE =
|
74
|
+
|
75
|
+
CLEANFILES = mkmf.log
|
76
|
+
DISTCLEANFILES =
|
77
|
+
|
78
|
+
extout =
|
79
|
+
extout_prefix =
|
80
|
+
target_prefix = /solaris
|
81
|
+
LOCAL_LIBS =
|
82
|
+
LIBS = -lsec -ldl -lcrypt -lm -lc
|
83
|
+
SRCS = sfile.c
|
84
|
+
OBJS = sfile.o
|
85
|
+
TARGET = file
|
86
|
+
DLLIB = $(TARGET).so
|
87
|
+
EXTSTATIC =
|
88
|
+
STATIC_LIB =
|
89
|
+
|
90
|
+
RUBYCOMMONDIR = $(sitedir)$(target_prefix)
|
91
|
+
RUBYLIBDIR = $(sitelibdir)$(target_prefix)
|
92
|
+
RUBYARCHDIR = $(sitearchdir)$(target_prefix)
|
93
|
+
|
94
|
+
TARGET_SO = $(DLLIB)
|
95
|
+
CLEANLIBS = $(TARGET).so $(TARGET).il? $(TARGET).tds $(TARGET).map
|
96
|
+
CLEANOBJS = *.o *.a *.s[ol] *.pdb *.exp *.bak
|
97
|
+
|
98
|
+
all: $(DLLIB)
|
99
|
+
static: $(STATIC_LIB)
|
100
|
+
|
101
|
+
clean:
|
102
|
+
@-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
|
103
|
+
|
104
|
+
distclean: clean
|
105
|
+
@-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
|
106
|
+
@-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
|
107
|
+
|
108
|
+
realclean: distclean
|
109
|
+
install: install-so install-rb
|
110
|
+
|
111
|
+
install-so: $(RUBYARCHDIR)
|
112
|
+
install-so: $(RUBYARCHDIR)/$(DLLIB)
|
113
|
+
$(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
|
114
|
+
$(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
|
115
|
+
install-rb: pre-install-rb install-rb-default
|
116
|
+
install-rb-default: pre-install-rb-default
|
117
|
+
pre-install-rb: Makefile
|
118
|
+
pre-install-rb-default: Makefile
|
119
|
+
$(RUBYARCHDIR):
|
120
|
+
$(MAKEDIRS) $@
|
121
|
+
|
122
|
+
site-install: site-install-so site-install-rb
|
123
|
+
site-install-so: install-so
|
124
|
+
site-install-rb: install-rb
|
125
|
+
|
126
|
+
.SUFFIXES: .c .m .cc .cxx .cpp .C .o
|
127
|
+
|
128
|
+
.cc.o:
|
129
|
+
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
|
130
|
+
|
131
|
+
.cxx.o:
|
132
|
+
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
|
133
|
+
|
134
|
+
.cpp.o:
|
135
|
+
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
|
136
|
+
|
137
|
+
.C.o:
|
138
|
+
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
|
139
|
+
|
140
|
+
.c.o:
|
141
|
+
$(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) -c $<
|
142
|
+
|
143
|
+
$(DLLIB): $(OBJS)
|
144
|
+
@-$(RM) $@
|
145
|
+
$(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
$(OBJS): ruby.h defines.h
|
data/ext/extconf.rb
CHANGED
data/ext/file.so
ADDED
Binary file
|
data/ext/mkmf.log
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
have_library: checking for main() in -lsec... -------------------- yes
|
2
|
+
|
3
|
+
"cc -o conftest -I. -I/usr/local/lib/ruby/1.8/sparc-solaris2.10 -I. -Isolaris -dalign -fns -xbuiltin=%all -xlibmil -xtarget=ultra2e -xO5 -xipo conftest.c -L'.' -L'/usr/local/lib' -R'/usr/local/lib' -L. -lruby-static -lsec -ldl -lcrypt -lm -lc"
|
4
|
+
cc: Warning: -xarch=native has been explicitly specified, or implicitly specified by a macro option, -xarch=native on this architecture implies -xarch=sparcvis which generates code that does not run on pre UltraSPARC processors
|
5
|
+
checked program was:
|
6
|
+
/* begin */
|
7
|
+
1: /*top*/
|
8
|
+
2: int main() { return 0; }
|
9
|
+
3: int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
|
10
|
+
/* end */
|
11
|
+
|
12
|
+
--------------------
|
13
|
+
|
data/ext/sfile.o
ADDED
Binary file
|
data/ext/solaris/file.so
ADDED
Binary file
|
data/ext/solaris/sfile.c
CHANGED
@@ -476,6 +476,6 @@ void Init_file(){
|
|
476
476
|
"acl_type", "acl_id", "acl_perm", NULL
|
477
477
|
);
|
478
478
|
|
479
|
-
/* 0.3.
|
479
|
+
/* 0.3.4: The version of this library, returned as a String */
|
480
480
|
rb_define_const(rb_cFile, "SOLARIS_VERSION", rb_str_new2(SOLARIS_VERSION));
|
481
481
|
}
|
data/ext/solaris/sfile.h
CHANGED
data/test/tc_solaris_file.rb
CHANGED
@@ -22,14 +22,14 @@ class TC_Solaris_File < Test::Unit::TestCase
|
|
22
22
|
File.open(@file,"w+"){ |fh| fh.puts "foo" } unless File.exists?(@file)
|
23
23
|
File.open(@file2,"w+"){ |fh| fh.puts "bar" } unless File.exists?(@file2)
|
24
24
|
|
25
|
-
system("
|
25
|
+
system("chmod A=#{@acl_text} #{@file2}") # Make @file2 non-trivial
|
26
26
|
|
27
27
|
@fh = File.open(@file)
|
28
28
|
@fh2 = File.open(@file2)
|
29
29
|
end
|
30
30
|
|
31
31
|
def test_version
|
32
|
-
assert_equal('0.3.
|
32
|
+
assert_equal('0.3.4', File::SOLARIS_VERSION)
|
33
33
|
end
|
34
34
|
|
35
35
|
# CLASS METHODS
|
metadata
CHANGED
@@ -1,57 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.4
|
3
|
-
specification_version: 1
|
4
2
|
name: solaris-file
|
5
3
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.3.
|
7
|
-
date: 2007-08-20 00:00:00 -06:00
|
8
|
-
summary: ACL and other methods for the File class on Solaris
|
9
|
-
require_paths:
|
10
|
-
- lib
|
11
|
-
email: djberg96@gmail.com
|
12
|
-
homepage: http://www.rubyforge.org/projects/solarisutils
|
13
|
-
rubyforge_project: solarisutils
|
14
|
-
description: ACL and other methods for the File class on Solaris
|
15
|
-
autorequire:
|
16
|
-
default_executable:
|
17
|
-
bindir: bin
|
18
|
-
has_rdoc: true
|
19
|
-
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
-
requirements:
|
21
|
-
- - ">="
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: 1.8.0
|
24
|
-
version:
|
4
|
+
version: 0.3.4
|
25
5
|
platform: ruby
|
26
|
-
signing_key:
|
27
|
-
cert_chain:
|
28
|
-
post_install_message:
|
29
6
|
authors:
|
30
7
|
- Daniel J. Berger
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2008-02-04 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: ACL and other methods for the File class on Solaris
|
17
|
+
email: djberg96@gmail.com
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions:
|
21
|
+
- ext/extconf.rb
|
22
|
+
extra_rdoc_files:
|
23
|
+
- README
|
24
|
+
- CHANGES
|
25
|
+
- MANIFEST
|
26
|
+
- ext/solaris/sfile.c
|
31
27
|
files:
|
32
28
|
- ext/extconf.rb
|
33
29
|
- ext/solaris
|
34
30
|
- ext/solaris/sfile.c
|
35
31
|
- ext/solaris/sfile.h
|
32
|
+
- ext/solaris/file.so
|
33
|
+
- ext/mkmf.log
|
34
|
+
- ext/Makefile
|
35
|
+
- ext/sfile.o
|
36
|
+
- ext/file.so
|
36
37
|
- test/tc_solaris_file.rb
|
37
38
|
- examples/test.rb
|
38
39
|
- README
|
39
40
|
- CHANGES
|
40
41
|
- MANIFEST
|
41
|
-
|
42
|
-
|
42
|
+
has_rdoc: true
|
43
|
+
homepage: http://www.rubyforge.org/projects/solarisutils
|
44
|
+
post_install_message:
|
43
45
|
rdoc_options: []
|
44
46
|
|
45
|
-
|
46
|
-
-
|
47
|
-
|
48
|
-
|
49
|
-
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
47
|
+
require_paths:
|
48
|
+
- lib
|
49
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 1.8.0
|
54
|
+
version:
|
55
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: "0"
|
60
|
+
version:
|
54
61
|
requirements: []
|
55
62
|
|
56
|
-
|
57
|
-
|
63
|
+
rubyforge_project: solarisutils
|
64
|
+
rubygems_version: 1.0.1
|
65
|
+
signing_key:
|
66
|
+
specification_version: 2
|
67
|
+
summary: ACL and other methods for the File class on Solaris
|
68
|
+
test_files:
|
69
|
+
- test/tc_solaris_file.rb
|