From 3004d3205445f19013f46e6f8b5067d38c8e4de0 Mon Sep 17 00:00:00 2001 From: Randy Valis Date: Thu, 16 Oct 2014 21:15:39 -0400 Subject: [PATCH] Added Nano and Rsync packages --- packages/nano.rb | 19 +++++++++++++++++++ packages/rsync.rb | 18 ++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 packages/nano.rb create mode 100644 packages/rsync.rb diff --git a/packages/nano.rb b/packages/nano.rb new file mode 100644 index 000000000..6f175f28a --- /dev/null +++ b/packages/nano.rb @@ -0,0 +1,19 @@ +require 'package' + +class Nano < Package + version '2.3.6' + source_url 'ftp://ftp.gnu.org/pub/gnu/nano/nano-2.3.6.tar.gz' # software source tarball url + source_sha1 '7dd39f21bbb1ab176158e0292fd61c47ef681f6d' + + depends_on 'buildessential' + depends_on 'ncurses' + + def self.build # self.build contains commands needed to build the software from source + system "./configure" + system "make" # ordered chronologically + end + + def self.install # self.install contains commands needed to install the software on the target system + system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # remember to include DESTDIR set to CREW_DEST_DIR - needed to keep track of changes made to system + end +end diff --git a/packages/rsync.rb b/packages/rsync.rb new file mode 100644 index 000000000..3561f0494 --- /dev/null +++ b/packages/rsync.rb @@ -0,0 +1,18 @@ +require 'package' + +class Rsync < Package + version '3.1.1' + source_url 'http://rsync.samba.org/ftp/rsync/src/rsync-3.1.1.tar.gz' # software source tarball url + source_sha1 'c84faba04f721d393feccfa0476bfeed9b5b5250' + + depends_on 'buildessential' + + def self.build # self.build contains commands needed to build the software from source + system "./configure" + system "make" # ordered chronologically + end + + def self.install # self.install contains commands needed to install the software on the target system + system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" # remember to include DESTDIR set to CREW_DEST_DIR - needed to keep track of changes made to system + end +end