From b53bdce3ea4a73c6dd974f3d3e4d67d94a0b7186 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Fri, 23 Jul 2010 17:38:26 +0000 Subject: Add Solaris Packaging manifest * script to build the package * init script for starting glusterfs server * pkginfo manifest and updated copyright. * options file which is read to take additional arguments to glusterfs server. Signed-off-by: Harshavardhana Signed-off-by: Anand V. Avati BUG: 1212 (Add solaris building manifest) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1212 --- extras/Solaris/Prototype | 215 ------------------------------------- extras/Solaris/README | 13 +++ extras/Solaris/README.solaris | 17 --- extras/Solaris/configure.sh | 10 ++ extras/Solaris/copyright | 1 + extras/Solaris/glusterfsd | 47 ++++++++ extras/Solaris/make-gluster-pkg.sh | 107 ++++++++++++++++++ extras/Solaris/options | 1 + extras/Solaris/pkginfo | 12 --- extras/Solaris/pkginfo.master | 12 +++ extras/Solaris/postinstall | 14 +++ extras/Solaris/preremove | 10 ++ extras/Solaris/request | 13 +++ 13 files changed, 228 insertions(+), 244 deletions(-) delete mode 100644 extras/Solaris/Prototype create mode 100644 extras/Solaris/README delete mode 100644 extras/Solaris/README.solaris create mode 100755 extras/Solaris/configure.sh create mode 100644 extras/Solaris/copyright create mode 100755 extras/Solaris/glusterfsd create mode 100755 extras/Solaris/make-gluster-pkg.sh create mode 100644 extras/Solaris/options delete mode 100644 extras/Solaris/pkginfo create mode 100644 extras/Solaris/pkginfo.master create mode 100644 extras/Solaris/postinstall create mode 100644 extras/Solaris/preremove create mode 100644 extras/Solaris/request (limited to 'extras') diff --git a/extras/Solaris/Prototype b/extras/Solaris/Prototype deleted file mode 100644 index 369234210a9..00000000000 --- a/extras/Solaris/Prototype +++ /dev/null @@ -1,215 +0,0 @@ -i pkginfo -i checkinstall -d none /usr/sfw 0755 root bin -d none /usr/sfw/var 0755 root root -d none /usr/sfw/var/log 0755 root root -d none /usr/sfw/var/log/glusterfs 0755 root root -d none /usr/sfw/var/run 0755 root root -d none /usr/sfw/share 0755 root bin -d none /usr/sfw/share/man 0755 root bin -d none /usr/sfw/share/man/man8 0755 root bin -f none /usr/sfw/share/man/man8/glusterfs.8 0644 root root -d none /usr/sfw/share/doc 0755 root bin -d none /usr/sfw/share/doc/glusterfs 0755 root root -d none /usr/sfw/share/doc/glusterfs/examples 0755 root root -f none /usr/sfw/share/doc/glusterfs/examples/README 0644 root root -f none /usr/sfw/share/doc/glusterfs/examples/read-ahead.vol 0644 root root -f none /usr/sfw/share/doc/glusterfs/examples/trash.vol 0644 root root -f none /usr/sfw/share/doc/glusterfs/examples/unify.vol 0644 root root -f none /usr/sfw/share/doc/glusterfs/examples/filter.vol 0644 root root -f none /usr/sfw/share/doc/glusterfs/examples/protocol-server.vol 0644 root root -f none /usr/sfw/share/doc/glusterfs/examples/io-threads.vol 0644 root root -f none /usr/sfw/share/doc/glusterfs/examples/posix-locks.vol 0644 root root -f none /usr/sfw/share/doc/glusterfs/examples/trace.vol 0644 root root -f none /usr/sfw/share/doc/glusterfs/examples/protocol-client.vol 0644 root root -f none /usr/sfw/share/doc/glusterfs/examples/write-behind.vol 0644 root root -f none /usr/sfw/share/doc/glusterfs/examples/stripe.vol 0644 root root -f none /usr/sfw/share/doc/glusterfs/examples/afr.vol 0644 root root -f none /usr/sfw/share/doc/glusterfs/examples/io-cache.vol 0644 root root -f none /usr/sfw/share/doc/glusterfs/glusterfs-mode.el 0644 root root -d none /usr/sfw/etc 0755 root root -d none /usr/sfw/etc/glusterfs 0755 root root -f none /usr/sfw/etc/glusterfs/glusterfs-client.vol.sample 0644 root root -f none /usr/sfw/etc/glusterfs/glusterfs-server.vol.sample 0644 root root -d none /usr/sfw/include 0755 root bin -f none /usr/sfw/include/libglusterfsclient.h 0644 root root -d none /usr/sfw/lib 0755 root bin -s none /usr/sfw/lib/libglusterfsclient.so.0=libglusterfsclient.so.0.0.0 -f none /usr/sfw/lib/libglusterfsclient.so.0.0.0 0755 root root -f none /usr/sfw/lib/libglusterfsclient.a 0644 root root -f none /usr/sfw/lib/libglusterfs.a 0644 root root -f none /usr/sfw/lib/libglusterfs.so.0.0.0 0755 root root -s none /usr/sfw/lib/libglusterfsclient.so=libglusterfsclient.so.0.0.0 -s none /usr/sfw/lib/libglusterfs.so.0=libglusterfs.so.0.0.0 -s none /usr/sfw/lib/libglusterfs.so=libglusterfs.so.0.0.0 -d none /usr/sfw/lib/glusterfs 0755 root root -d none /usr/sfw/lib/glusterfs/2.0.0rc1 0755 root root -d none /usr/sfw/lib/glusterfs/2.0.0rc1/transport 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/transport/socket.la 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/transport/socket.a 0644 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/transport/socket.so=socket.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/transport/socket.so.0.0.0 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/transport/socket.so.0=socket.so.0.0.0 -d none /usr/sfw/lib/glusterfs/2.0.0rc1/auth 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/auth/addr.la 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/auth/addr.so=addr.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/auth/login.a 0644 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/auth/login.so=login.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/auth/addr.so.0.0.0 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/auth/addr.a 0644 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/auth/addr.so.0=addr.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/auth/login.so.0.0.0 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/auth/login.so.0=login.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/auth/login.la 0755 root root -d none /usr/sfw/lib/glusterfs/2.0.0rc1/scheduler 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/scheduler/random.so.0.0.0 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/scheduler/nufa.so=nufa.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/scheduler/random.a 0644 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/scheduler/switch.so=switch.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/scheduler/nufa.a 0644 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/scheduler/nufa.so.0.0.0 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/scheduler/rr.a 0644 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/scheduler/switch.la 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/scheduler/nufa.la 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/scheduler/alu.so.0=alu.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/scheduler/alu.so.0.0.0 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/scheduler/random.la 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/scheduler/rr.so.0=rr.so.0.0.0 -s none /usr/sfw/lib/glusterfs/2.0.0rc1/scheduler/alu.so=alu.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/scheduler/switch.so.0.0.0 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/scheduler/random.so.0=random.so.0.0.0 -s none /usr/sfw/lib/glusterfs/2.0.0rc1/scheduler/rr.so=rr.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/scheduler/alu.a 0644 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/scheduler/rr.la 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/scheduler/alu.la 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/scheduler/switch.a 0644 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/scheduler/rr.so.0.0.0 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/scheduler/nufa.so.0=nufa.so.0.0.0 -s none /usr/sfw/lib/glusterfs/2.0.0rc1/scheduler/switch.so.0=switch.so.0.0.0 -s none /usr/sfw/lib/glusterfs/2.0.0rc1/scheduler/random.so=random.so.0.0.0 -d none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator 0755 root root -d none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/performance 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/performance/io-cache.so.0.0.0 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/performance/read-ahead.a 0644 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/performance/io-cache.a 0644 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/performance/symlink-cache.so=symlink-cache.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/performance/io-cache.la 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/performance/write-behind.la 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/performance/write-behind.so.0=write-behind.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/performance/symlink-cache.so.0.0.0 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/performance/write-behind.so.0.0.0 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/performance/io-threads.a 0644 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/performance/write-behind.so=write-behind.so.0.0.0 -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/performance/io-cache.so=io-cache.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/performance/symlink-cache.la 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/performance/read-ahead.so.0.0.0 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/performance/symlink-cache.so.0=symlink-cache.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/performance/write-behind.a 0644 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/performance/read-ahead.la 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/performance/io-threads.la 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/performance/io-threads.so.0=io-threads.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/performance/symlink-cache.a 0644 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/performance/read-ahead.so.0=read-ahead.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/performance/io-threads.so.0.0.0 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/performance/io-threads.so=io-threads.so.0.0.0 -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/performance/read-ahead.so=read-ahead.so.0.0.0 -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/performance/io-cache.so.0=io-cache.so.0.0.0 -d none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/encryption 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/encryption/rot-13.so=rot-13.so.0.0.0 -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/encryption/rot-13.so.0=rot-13.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/encryption/rot-13.la 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/encryption/rot-13.so.0.0.0 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/encryption/rot-13.a 0644 root root -d none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/protocol 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/protocol/server.so.0.0.0 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/protocol/client.so.0.0.0 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/protocol/server.so.0=server.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/protocol/client.a 0644 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/protocol/client.so.0=client.so.0.0.0 -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/protocol/client.so=client.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/protocol/server.a 0644 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/protocol/server.so=server.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/protocol/server.la 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/protocol/client.la 0755 root root -d none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/features 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/features/trash.so=trash.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/features/quota.la 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/features/quota.a 0644 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/features/path-converter.a 0644 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/features/trash.so.0.0.0 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/features/trash.a 0644 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/features/filter.so=filter.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/features/path-converter.la 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/features/locks.so.0=locks.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/features/path-converter.so.0.0.0 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/features/locks.so=locks.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/features/locks.la 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/features/filter.a 0644 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/features/locks.so.0.0.0 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/features/path-converter.so.0=path-converter.so.0.0.0 -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/features/path-converter.so=path-converter.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/features/filter.la 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/features/quota.so=quota.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/features/trash.la 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/features/filter.so.0=filter.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/features/quota.so.0.0.0 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/features/quota.so.0=quota.so.0.0.0 -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/features/trash.so.0=trash.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/features/locks.a 0644 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/features/posix-locks.so=locks.so -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/features/filter.so.0.0.0 0755 root root -d none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/nufa.so.0=nufa.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/dht.so.0.0.0 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/ha.so.0.0.0 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/stripe.so.0.0.0 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/unify.la 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/ha.so=ha.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/nufa.so.0.0.0 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/stripe.a 0644 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/afr.a 0644 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/stripe.so.0=stripe.so.0.0.0 -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/unify.so.0=unify.so.0.0.0 -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/distribute.so=dht.so -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/ha.la 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/replicate.so=afr.so -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/unify.so=unify.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/afr.so.0.0.0 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/unify.a 0644 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/nufa.a 0644 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/ha.so.0=ha.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/ha.a 0644 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/stripe.so=stripe.so.0.0.0 -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/nufa.so=nufa.so.0.0.0 -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/afr.so=afr.so.0.0.0 -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/dht.so=dht.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/dht.a 0644 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/unify.so.0.0.0 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/dht.la 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/stripe.la 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/dht.so.0=dht.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/afr.la 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/nufa.la 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/cluster/afr.so.0=afr.so.0.0.0 -d none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/debug 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/debug/trace.so=trace.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/debug/error-gen.la 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/debug/trace.so.0=trace.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/debug/trace.la 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/debug/error-gen.so=error-gen.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/debug/trace.a 0644 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/debug/error-gen.so.0.0.0 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/debug/error-gen.a 0644 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/debug/error-gen.so.0=error-gen.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/debug/trace.so.0.0.0 0755 root root -d none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/storage 0755 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/storage/posix.so=posix.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/storage/posix.la 0755 root root -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/storage/posix.a 0644 root root -s none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/storage/posix.so.0=posix.so.0.0.0 -f none /usr/sfw/lib/glusterfs/2.0.0rc1/xlator/storage/posix.so.0.0.0 0755 root root -f none /usr/sfw/lib/libglusterfsclient.la 0755 root root -f none /usr/sfw/lib/libglusterfs.la 0755 root root -d none /usr/sfw/sbin 0755 root bin -s none /usr/sfw/sbin/glusterfs=glusterfsd -f none /usr/sfw/sbin/glusterfsd 0755 root root diff --git a/extras/Solaris/README b/extras/Solaris/README new file mode 100644 index 00000000000..d027398f9fd --- /dev/null +++ b/extras/Solaris/README @@ -0,0 +1,13 @@ + +INSTRUCTIONS: Preparing Gluster packages for Solaris + +To produce a package: + +* Type sh make-gluster-pkg.sh + +The package will be created in the /tmp directory. + +By default, the package will be built to install glusterfs in /opt/glusterfs +To change the default, modify the INSTALL_BASE variable in make-gluster-pkg.sh + +Change the version for each build example: VERSION=3.0.6 in make-gluster-pkg.sh \ No newline at end of file diff --git a/extras/Solaris/README.solaris b/extras/Solaris/README.solaris deleted file mode 100644 index ddb70c22c0e..00000000000 --- a/extras/Solaris/README.solaris +++ /dev/null @@ -1,17 +0,0 @@ - -1. Download GlusterFS.2.0.0rc1.i86pc.Solaris.2.11.pkg.tgz to /tmp -2. tar xvf GlusterFS.2.0.0rc1.i86pc.Solaris.2.11.pkg.tgz in /tmp -3. pkgadd -d /tmp GlusterFS -4. -$ pkginfo GlusterFS -system GlusterFS GlusterFS 2.0.0rc1 -$ which glusterfs -/usr/sfw/sbin/glusterfs -$ glusterfs --version -glusterfs 2.0.0rc1 built on Jan 16 2009 03:36:59 -Repository revision: glusterfs--mainline--3.0--patch-844 -Copyright (c) 2006, 2007, 2008 Gluster Inc. -GlusterFS comes with ABSOLUTELY NO WARRANTY. -You may redistribute copies of GlusterFS under the terms of the GNU General Public License. - -Thats it you are done! \ No newline at end of file diff --git a/extras/Solaris/configure.sh b/extras/Solaris/configure.sh new file mode 100755 index 00000000000..e8c93c68dd3 --- /dev/null +++ b/extras/Solaris/configure.sh @@ -0,0 +1,10 @@ +#!/usr/bin/bash + +export PATH=/opt/csw/bin:/opt/csw/gcc4/bin:/usr/ccs/bin:/usr/ucb:/usr/sfw/bin:$PATH + +cd source/ +make distclean +./configure --disable-fuse-client --prefix=/opt/glusterfs; +make; + +exit 0 diff --git a/extras/Solaris/copyright b/extras/Solaris/copyright new file mode 100644 index 00000000000..90014136ed4 --- /dev/null +++ b/extras/Solaris/copyright @@ -0,0 +1 @@ +Copyright (C) 2010 Gluster Inc. diff --git a/extras/Solaris/glusterfsd b/extras/Solaris/glusterfsd new file mode 100755 index 00000000000..82ee6800aa6 --- /dev/null +++ b/extras/Solaris/glusterfsd @@ -0,0 +1,47 @@ +#!/sbin/sh +#ident "@(#)gluster.server 1.0 2010-06-23 " /* GlusterFS */ +# +# This file should have uid root, gid sys and chmod 755 +# +if [ ! -d /usr/bin ] +then # /usr not mounted + exit +fi + +BASE=/opt/glusterfs +DAEMON=glusterfsd +OPTIONS=`cat ${BASE}/etc/glusterfs/options` +CONFIG=${BASE}/etc/glusterfs/glusterfsd.vol +PIDFILE=${BASE}/var/run/glusterfsd.pid +CMD="${BASE}/sbin/${DAEMON} ${OPTIONS} -f ${CONFIG} -p ${PIDFILE}" + +killproc() { # kill the named process(es) + pid=`cat ${BASE}/var/run/glusterfsd.pid` + [ "$pid" != "$!" ] && kill $pid +} + +# Start/stop processes required for Gluster server + +case "$1" in + +'start') + LD_LIBRARY_PATH=/opt/csw/gcc4/lib; + export LD_LIBRARY_PATH; + $CMD + ;; + +'stop') + killproc ${DAEMON} + ;; + +'restart') + killproc ${DAEMON} + $0 start + ;; + +*) + echo "Usage: $0 { start | stop | restart }" + ;; +esac + +exit 0 diff --git a/extras/Solaris/make-gluster-pkg.sh b/extras/Solaris/make-gluster-pkg.sh new file mode 100755 index 00000000000..0d52b2dda11 --- /dev/null +++ b/extras/Solaris/make-gluster-pkg.sh @@ -0,0 +1,107 @@ +#!/usr/bin/bash +# +# Copyright (C) 2010 Gluster Inc. +# +# script to build GlusterFS Packages for Solaris +# + +export PATH=/opt/csw/bin:/opt/csw/gcc4/bin:/usr/ccs/bin:/usr/ucb:/usr/sfw/bin:$PATH + +INSTALL_BASE=/opt/glusterfs + +VERSION=3.0.5 +SBINPROS="glusterfsd glusterfs" +BINPROGS="glusterfs-volgen" +##################################################################### +## BEGIN MAIN +##################################################################### + +TMPINSTALLDIR=/tmp/build + +# Try to guess the distribution base.. +CURR_DIR=`pwd` +echo "Assuming GlusterFS distribution is rooted at $CURR_DIR .." + +## +## first build the source +## + +WGET=`which wget` +$WGET http://ftp.gluster.com/pub/gluster/glusterfs/3.0/$VERSION/glusterfs-$VERSION.tar.gz + +tar xf glusterfs-$VERSION.tar.gz +mv glusterfs-$VERSION source + +if [ "x$1" != "xnobuild" ]; then + + ./configure.sh + + if [ $? -ne 0 ]; then + echo "Build failed! Exiting...." + exit 1 + fi +fi + +cd $CURR_DIR/source +make DESTDIR=$TMPINSTALLDIR install + +cd $CURR_DIR +## +## Now set the install locations +## +SBINDIR=/opt/glusterfs/sbin +BINDIR=/opt/glusterfs/bin +CONFIGDIR=/opt/glusterfs/etc/glusterfs +## +## Main driver +## +## copy over some scripts need for packagaing +## +mkdir -p $TMPINSTALLDIR/etc/init.d + cp -fp glusterfsd $TMPINSTALLDIR/etc/init.d +mkdir -p $TMPINSTALLDIR/etc/rc3.d + cp -fp glusterfsd $TMPINSTALLDIR/etc/rc3.d/S52glusterfsd +mkdir -p $CONFIGDIR + cp -fp options $TMPINSTALLDIR$CONFIGDIR + +## +## Start building the prototype file +## +cp pkginfo.master pkginfo + +echo "SBINDIR=$SBINDIR" >> pkginfo +echo "BINDIR=$BINDIR" >> pkginfo +echo "CONFIGDIR=$CONFIGDIR" >> pkginfo + +## +## copy packaging files +## +for i in pkginfo copyright preremove postinstall request checkinstall; do + cp $i / +done + + +cd / +(echo 'i pkginfo'; echo 'i copyright'; echo 'i preremove'; echo 'i postinstall'; echo 'i request'; pkgproto /$TMPINSTALLDIR=/ ) >prototype + +GREP=`which ggrep` +$GREP -w '/' /prototype -v > /prototype.new + +mv /prototype.new /prototype + +# Create the package +pkgmk -o -d /tmp -f prototype + +if [ $? = 0 ]; then + pkgtrans /tmp glusterfs_${VERSION}_i386.pkg glusterfs +fi + +echo "Cleaning up build files" + +rm -rf $TMPINSTALLDIR + +for i in pkginfo copyright preremove postinstall request checkinstall; do + rm /$i +done + +echo The GlusterFS package is in /tmp diff --git a/extras/Solaris/options b/extras/Solaris/options new file mode 100644 index 00000000000..433e3043ca8 --- /dev/null +++ b/extras/Solaris/options @@ -0,0 +1 @@ +--xlator-option=server-tcp.transport.socket.bind-address= diff --git a/extras/Solaris/pkginfo b/extras/Solaris/pkginfo deleted file mode 100644 index 0da4907d86b..00000000000 --- a/extras/Solaris/pkginfo +++ /dev/null @@ -1,12 +0,0 @@ -PKG="GlusterFS" -NAME="GlusterFS 2.0.0rc1" -VERSION="2.0.0rc1" -ARCH="i386" -CLASSES="none" -CATEGORY="system" -VENDOR="Gluster Inc" -PSTAMP="16thJan08" -EMAIL="harsha@gluster.com" -ISTATES="S s 1 2 3" -RSTATES="S s 1 2 3" -BASEDIR="/" diff --git a/extras/Solaris/pkginfo.master b/extras/Solaris/pkginfo.master new file mode 100644 index 00000000000..70346857860 --- /dev/null +++ b/extras/Solaris/pkginfo.master @@ -0,0 +1,12 @@ +PKG=glusterfs +NAME=GlusterFS Server +ARCH=i386 +VERSION=3.0.5rc6 +CATEGORY=system +VENDOR=Gluster Inc. +DESC=GlusterFS Software Package +HOTLINE=service@gluster.com +EMAIL=gluster-users@gluster.org +CLASSES=none +BASEDIR=/opt/glusterfs +INTONLY=1 diff --git a/extras/Solaris/postinstall b/extras/Solaris/postinstall new file mode 100644 index 00000000000..9bc23fae754 --- /dev/null +++ b/extras/Solaris/postinstall @@ -0,0 +1,14 @@ +cat <$1 <