Skip to content
Browse files

Adds files necessary to build mogilefs-utils package

Makefile.PL - Handles most of the hard work.
MANIFEST / MANIFEST.SKIP - Makes it able to generate a clean diff
debian/* - Debian-support files
conf/* - Generic default config files


git-svn-id: http://code.sixapart.com/svn/mogilefs/trunk@168 f67b2e87-0811-0410-a7e0-dd94e48410d6
  • Loading branch information...
1 parent dccdb95 commit 0bd2b4b030181d7fd2968e878d2cd366a6695a21 jaybonci committed Feb 9, 2005
Showing with 191 additions and 0 deletions.
  1. +3 −0 MANIFEST
  2. +13 −0 MANIFEST.SKIP
  3. +33 −0 Makefile.PL
  4. +20 −0 conf/mogtool.conf
  5. +5 −0 debian/changelog
  6. +1 −0 debian/compat
  7. +13 −0 debian/control
  8. +25 −0 debian/copyright
  9. +9 −0 debian/mogilefs-utils.postinst
  10. +9 −0 debian/mogilefs-utils.postrm
  11. +60 −0 debian/rules
View
3 MANIFEST
@@ -0,0 +1,3 @@
+MANIFEST
+Makefile.PL
+mogtool
View
13 MANIFEST.SKIP
@@ -0,0 +1,13 @@
+^#
+\bCVS\b
+^MANIFEST\.
+^Makefile$
+~$
+\.html$
+\.old$
+^blib/
+_blib$
+^MakeMaker-\d
+^\.exists
+\bdebian\b
+\bconf\b
View
33 Makefile.PL
@@ -0,0 +1,33 @@
+#!/usr/bin/perl
+
+use ExtUtils::MakeMaker;
+
+my $exe_files;
+
+foreach("mogtool", "mogadm")
+{
+ push @$exe_files, $_ if -e;
+}
+
+warn "No \$exe_files!" unless defined($exe_files);
+
+WriteMakefile(
+ NAME => 'MogileFS-Utils',
+ VERSION => '1.00',
+ AUTHOR => 'Brad Whitaker <whitaker@danga.com>',
+ ABSTRACT => 'MogileFS client library',
+ EXE_FILES => $exe_files,
+ PREREQ_PM => {
+ 'LWP::Simple' => 0,
+ 'Compress::Zlib' => 0,
+ },
+ dist => {
+ CI => "cvs commit",
+ RCS_LABEL => 'cvs tag RELEASE_$(VERSION_SYM)',
+ SUFFIX => ".gz",
+ DIST_DEFAULT => 'all tardist',
+ COMPRESS => "gzip",
+ },
+
+);
+
View
20 conf/mogtool.conf
@@ -0,0 +1,20 @@
+# Configuration for mogtool
+# See man mogtool(1p) for a description of options
+
+trackers = 10.0.0.3:7001, 10.10.0.5/10.0.0.5:7001
+domain = mogiledomain
+class = fileclass
+
+# Location of private MogileFS library
+#lib = /home/foo/lib
+
+gzip = 1
+big = 1
+overwrite = 1
+chunksize = 32M
+
+# Where receipts should go to
+# receipt = foo@bar.com, baz@bar.com
+verify = 1
+concurrent = 3
+
View
5 debian/changelog
@@ -0,0 +1,5 @@
+mogilefs-utils (0.01-1) unstable; urgency=low
+
+ * Initial release
+
+ -- Jay Bonci <jaybonci@debian.org> Thu, 20 Jan 2005 03:11:27 -0500
View
1 debian/compat
@@ -0,0 +1 @@
+4
View
13 debian/control
@@ -0,0 +1,13 @@
+Source: mogilefs-utils
+Section: perl
+Priority: optional
+Maintainer: Jay Bonci <jaybonci@debian.org>
+Build-Depends-Indep: debhelper (>= 4.1.40), perl (>= 5.6.0-16), libcompress-zlib-perl, libwww-perl, libmogilefs-perl
+Standards-Version: 3.6.1.0
+
+Package: mogilefs-utils
+Architecture: all
+Depends: ${perl:Depends}, libcompress-zlib-perl, libwww-perl, libmogilefs-perl
+Description: utilities to manipulate mogileFS filesystems
+ The mogilefs-utils package contains tools to administrate and work with the
+ mogileFS filesystem from Danga Interactive.
View
25 debian/copyright
@@ -0,0 +1,25 @@
+This package was debianized by Jay Bonci <jaybonci@debian.org> on
+Thu Jan 20 03:12:59 EST 2005
+
+It was downloaded from: http://cvs.danga.com/browse.cgi/wcmtools/mogilefs/utils/mogtool
+
+Upstream Authors:
+ Brad Fitzpatrick <brad@danga.com>
+ Mark Smith <marksmith@danga.com>
+
+Copyright:
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of either:
+
+ a) the GNU General Public License as published by the Free
+ Software Foundation; either version 1, or (at your option) any
+ later version, or
+
+ b) the "Artistic License"
+
+ See:
+
+ /usr/share/common-licenses/Artistic
+ /usr/share/common-licenses/GPL
+
+ For more information regarding these licensing options
View
9 debian/mogilefs-utils.postinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ ! -e /etc/mogilefs/ ]
+ then
+ mkdir -p /etc/mogilefs
+ cp /usr/share/mogilefs-utils/mogtool.conf.default /etc/mogilefs/mogtool.conf
+fi
+
+#DEBHELPER#
View
9 debian/mogilefs-utils.postrm
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ "$1" = "purge" ]
+ then
+ rm -f /etc/mogilefs/mogtool.conf
+ rmdir --ignore-fail-on-non-empty /etc/mogilefs
+fi
+
+#DEBHELPER#
View
60 debian/rules
@@ -0,0 +1,60 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This is the debhelper compatibility version to use.
+# export DH_COMPAT=4
+
+PACKAGE=`pwd | sed -e "s/.*\/\\(.*\\)-.*/\\1/"`
+SHAREDIR=$(CURDIR)/debian/$(PACKAGE)/usr/share/$(PACKAGE)
+
+build:
+ dh_testdir
+ # Add here commands to compile the package.
+ perl Makefile.PL verbose INSTALLDIRS=vendor
+clean:
+ dh_testdir
+ dh_testroot
+
+ -$(MAKE) clean
+ rm -f Makefile.old
+ dh_clean
+
+install:
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ $(MAKE) PREFIX=$(CURDIR)/debian/$(PACKAGE)/usr OPTIMIZE="-O2 -g -Wall" test install
+
+ # No tests, so we smoke test like this:
+ perl -c mogtool
+
+ install -d $(SHAREDIR)
+ install -m 644 conf/mogtool.conf $(SHAREDIR)/mogtool.conf.default
+
+ -find $(CURDIR)/debian -type d | xargs rmdir -p --ignore-fail-on-non-empty
+
+binary-arch:;
+binary-indep: build install
+ dh_testdir
+ dh_testroot
+ dh_installdocs
+ dh_installman
+ dh_installchangelogs
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_perl
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure

0 comments on commit 0bd2b4b

Please sign in to comment.
Something went wrong with that request. Please try again.