Merge pull request #161 from yakar/master

ruby23, ruby-bundler23, beef paketleri
This commit is contained in:
Milli İşletim Sistemi (Milis Linux) 2017-06-27 14:11:41 +03:00 committed by GitHub
commit b21ceb2f86
5 changed files with 105 additions and 0 deletions

View File

@ -0,0 +1,3 @@
#!/bin/sh
cd /usr/share/beef
bundle install

View File

@ -0,0 +1,47 @@
# Description: The Browser Exploitation Framework that focuses on the web browser
# URL: http://beefproject.com/
# Packager: yakar (aydin@komutan.org)
# Depends on: ruby23 ruby-bundler23 sqlite python
name=beef
version=0.4.7.0
release=1
source=(beef_gemkur)
build() {
if [ ! -d $DERLEME_KAYNAKDIZIN/$name ];then
git clone http://github.com/beefproject/$name.git $DERLEME_KAYNAKDIZIN/$name
else
cd $DERLEME_KAYNAKDIZIN/$name
git pull
cd -
fi
git clone "$DERLEME_KAYNAKDIZIN/$name" "$PKG/usr/share/$name"
cd "$PKG/usr/share/$name"
mkdir -p "$PKG/usr/bin"
# beef_gemkur
cp $SRC/beef_gemkur $PKG/usr/bin
chmod +x "$PKG/usr/bin/beef_gemkur"
# beef
cat > "$PKG/usr/bin/$name" << EOF
#!/bin/sh
#check if last gem (nokogiri) are installed?
if ! gem spec nokogiri > /dev/null 2>&1; then
/usr/bin/beef_gemkur
fi
# run beef
cd /usr/share/$name
exec ruby $name "\${@}"
EOF
chmod +x "$PKG/usr/bin/$name"
rm "$PKG/usr/share/$name/install"
}

View File

@ -0,0 +1,19 @@
# Description: Ruby uygulama-paket yöneticisi
# URL: http://www.ruby-lang.org
# Packager: yakar (aydin@komutan.org)
# Depends on: ruby23
name=ruby-bundler23
_name=ruby-bundler
version=1.15.1
release=1
source=(https://rubygems.org/downloads/${_name#ruby-}-$version.gem)
build () {
cd "$SRC"
local _gemdir="$(ruby -e'puts Gem.default_dir')"
HOME="/tmp" GEM_HOME="$_gemdir"
GEM_PATH="$_gemdir"
gem install --no-user-install --ignore-dependencies -i "$PKG/$_gemdir" -n "$PKG/usr/bin" "${_name#ruby-}-$version.gem"
rm "$PKG/$_gemdir/cache/${_name#ruby-}-$version.gem"
}

View File

@ -0,0 +1,5 @@
# Read about the gemrc format at http://guides.rubygems.org/command-reference/#gem-environment
# --user-install is used to install to $HOME/.gem/ by default since we want to separate
# pacman installed gems and gem installed gems
gem: --user-install

View File

@ -0,0 +1,31 @@
# Description: Ruby yorumlayıcı
# URL: http://www.ruby-lang.org
# Packager: yakar (aydin@komutan.org)
# Depends on: libffi yaml
name=ruby23
_name=ruby
version=2.3.4
release=1
source=(http://cache.ruby-lang.org/pub/$_name/${version%.*}/$_name-$version.tar.xz
gemrc)
build () {
cd $_name-$version
PKG_CONFIG=/usr/bin/pkg-config ./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--sharedstatedir=/var/lib \
--libexecdir=/usr/lib/ruby \
--enable-shared \
--disable-rpath \
--disable-install-doc \
--with-dbm-type=gdbm_compat
make
make DESTDIR="${PKG}" install-nodoc
install -D -m644 ${SRC}/gemrc "${PKG}/etc/gemrc"
}