commit 131bab112679fc702ebbc23faa694e7552bbd866 Author: modeco80 Date: Sat Apr 20 04:22:42 2024 -0400 Initialize with vde2 and misc storage utilities diff --git a/README.md b/README.md new file mode 100644 index 0000000..7a20aac --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# modeco80/aur + +Welcome! diff --git a/net/vde2/libvdeplug-slirp-git/PKGBUILD b/net/vde2/libvdeplug-slirp-git/PKGBUILD new file mode 100644 index 0000000..88f3357 --- /dev/null +++ b/net/vde2/libvdeplug-slirp-git/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Lily Tsuru + +_gitname="vdeplug_slirp" +_pkgname="libvdeplug-slirp" + +pkgname="$_pkgname-git" +pkgver=r12.c096db8 +pkgrel=1 +pkgdesc="vdeplug4 plugin to join slirp networks (using libvdeslirp)" +arch=('any') +url="https://github.com/virtualsquare/vdeplug_slirp" +license=('LGPL') +groups=('virtualsquare') +depends=('libvdeslirp-git' 'vdeplug4') +makedepends=('git' 'cmake') +source=( + "git+$url.git" +) +options=(!makeflags) +sha256sums=( + 'SKIP' +) + +pkgver() { + cd "$_gitname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cmake -S$_gitname -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr + make -C build ${MAKEFLAGS} +} + +package() { + DESTDIR="$pkgdir/" make -C build install +} diff --git a/net/vde2/libvdeplug-vlan-git/PKGBUILD b/net/vde2/libvdeplug-vlan-git/PKGBUILD new file mode 100644 index 0000000..a4300f5 --- /dev/null +++ b/net/vde2/libvdeplug-vlan-git/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Lily Tsuru + +_gitname="vdeplug_vlan" +_pkgname="libvdeplug-vlan" + +pkgname="$_pkgname-git" +pkgver=r11.dbba9ee +pkgrel=1 +pkgdesc="802.1q (VLAN) nested plugin for vdeplug4" +arch=('any') +url="https://github.com/virtualsquare/${_gitname}" +license=('LGPL') +groups=('virtualsquare') +depends=('vdeplug4') +makedepends=('git' 'cmake') +source=( + "git+$url.git" +) +options=(!makeflags) +sha256sums=( + 'SKIP' +) + +pkgver() { + cd "$_gitname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cmake -S$_gitname -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr + make -C build ${MAKEFLAGS} +} + +package() { + DESTDIR="$pkgdir/" make -C build install +} diff --git a/net/vde2/libvdeslirp-git/PKGBUILD b/net/vde2/libvdeslirp-git/PKGBUILD new file mode 100644 index 0000000..eebf794 --- /dev/null +++ b/net/vde2/libvdeslirp-git/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Lily Tsuru + +_pkgname="libvdeslirp" + +pkgname="$_pkgname-git" +pkgver=r18.3d8136c +pkgrel=1 +pkgdesc="libslirp for Linux made easy peasy" +arch=('any') +url="https://github.com/virtualsquare/$_pkgname" +license=('LGPL') +groups=('virtualsquare') +depends=('libslirp') +makedepends=('git' 'cmake') +source=( + "git+$url.git" +) +options=(!makeflags) +sha256sums=( + 'SKIP' +) + +pkgver() { + cd "$_pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cmake -Slibvdeslirp -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr + make -C build ${MAKEFLAGS} +} + +package() { + DESTDIR="$pkgdir/" make -C build install +} diff --git a/net/vde2/vde2-vdeplug4-git/.SRCINFO b/net/vde2/vde2-vdeplug4-git/.SRCINFO new file mode 100644 index 0000000..0db7224 --- /dev/null +++ b/net/vde2/vde2-vdeplug4-git/.SRCINFO @@ -0,0 +1,38 @@ +pkgbase = vdeplug4-git + pkgdesc = VDE: Virtual Distributed Ethernet. Plug your VM directly to the cloud + pkgver = r74.926dc9a + pkgrel = 3 + url = https://github.com/rd235/vdeplug4 + install = vde2.install + arch = any + groups = virtualsquare + license = GPL2 + license = LGPL + license = custom:BSD + makedepends = git + makedepends = cmake + depends = s2argv-execs + depends = libpcap + depends = python + depends = wolfssl + provides = vdeplug4 + provides = vde2 + conflicts = vdeplug4 + conflicts = vde2 + replaces = vde2 + options = !makeflags + source = git+https://github.com/rd235/vdeplug4.git + source = git+https://github.com/virtualsquare/vde-2.git + source = dhcpd.conf.sample + source = iptables.rules.sample + source = vde-config.sample + source = vde-connection.sample + sha256sums = SKIP + sha256sums = SKIP + sha256sums = da0e2766dc63069da929c28126831ad5fdddcc4a04105a21217d78832c7ca1bc + sha256sums = 99076d7466cd99673dbe91ef83865187e7868177959b38e125df63eea957f83e + sha256sums = 5727c215646333c37b26388146cd3e6b3814b88d60d54051d7da99e00c0aef87 + sha256sums = 5139110ed6d5d1174bf12971512dac5196d9d07df46dd393d7b1cd083118fe9b + +pkgname = vdeplug4-git + diff --git a/net/vde2/vde2-vdeplug4-git/PKGBUILD b/net/vde2/vde2-vdeplug4-git/PKGBUILD new file mode 100644 index 0000000..cbbb89f --- /dev/null +++ b/net/vde2/vde2-vdeplug4-git/PKGBUILD @@ -0,0 +1,74 @@ +# Maintainer: Lily Tsuru +# Contributor: Gabriele Fulgaro +# Contributor: Sergej Pupykin +# Contributor: Tobias Powalowski + +# TODO: An alternative, way better way to do this would be to build vde2, remove the vdeplug files, +# and have a seperate vdeplug4-git package which provides the vdeplug implementation +# (as well as maybe vdeplug-git for the "old" ABI, since vdeplug4 is ABI compatible) + +_pkgname="vdeplug4" +_pkgname2="vde2" + +pkgname="vde2-vdeplug4-git" +pkgver=r83.e94fc5d +pkgrel=1 +pkgdesc="VDE: Virtual Distributed Ethernet. Plug your VM directly to the cloud" +arch=('any') +url="https://github.com/rd235/$_pkgname" +license=('GPL2' 'LGPL' 'custom:BSD') +groups=('virtualsquare') +depends=('s2argv-execs' 'libpcap' 'python' 'wolfssl') +makedepends=('git' 'cmake') +provides=("$_pkgname" "$_pkgname2") +conflicts=("$_pkgname" "$_pkgname2") +replaces=("$_pkgname2" "vdeplug4-git") +source=( + "git+$url.git" + "git+https://github.com/virtualsquare/vde-2.git" + dhcpd.conf.sample + iptables.rules.sample + vde-config.sample + vde-connection.sample +) +install=vde2.install +options=(!makeflags) +sha256sums=( + 'SKIP' + 'SKIP' + 'da0e2766dc63069da929c28126831ad5fdddcc4a04105a21217d78832c7ca1bc' + '99076d7466cd99673dbe91ef83865187e7868177959b38e125df63eea957f83e' + '5727c215646333c37b26388146cd3e6b3814b88d60d54051d7da99e00c0aef87' + '5139110ed6d5d1174bf12971512dac5196d9d07df46dd393d7b1cd083118fe9b' +) + +pkgver() { + cd "$_pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "vde-2" + autoreconf -if + ./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --libexecdir=/usr/lib/vde2 --enable-experimental + make + + mkdir -p "../$_pkgname/build" + cd "../$_pkgname/build" + cmake -DCMAKE_INSTALL_PREFIX=/usr .. + make +} + +package() { + cd "vde-2" + make prefix="$pkgdir"/usr sysconfdir="$pkgdir"/etc sbindir="$pkgdir"/usr/bin libexecdir="$pkgdir"/usr/lib/vde2 install + install -D -m 644 ../vde-config.sample $pkgdir/etc/vde/vde-config.sample + install -D -m 644 ../vde-connection.sample $pkgdir/etc/vde/vde-connection.sample + install -D -m 644 ../dhcpd.conf.sample $pkgdir/usr/share/vde2/dhcpd.conf.sample + install -D -m 644 ../iptables.rules.sample $pkgdir/usr/share/vde2/iptables.rules.sample + # install slirp license + #install -D -m 644 COPYING.slirpvde "${pkgdir}/usr/share/licenses/${pkgname}/COPYING.slirpvde" + + cd "../$_pkgname/build" + make DESTDIR="$pkgdir/" install +} diff --git a/net/vde2/vde2-vdeplug4-git/dhcpd.conf.sample b/net/vde2/vde2-vdeplug4-git/dhcpd.conf.sample new file mode 100644 index 0000000..565a78b --- /dev/null +++ b/net/vde2/vde2-vdeplug4-git/dhcpd.conf.sample @@ -0,0 +1,12 @@ +ddns-update-style none; + +subnet 192.168.254.0 netmask 255.255.255.0 { + range 192.168.254.1 192.168.254.253; + option routers 192.168.254.254; + option domain-name "virtual.example.com"; + # find your DNS servers from /etc/resolv.conf + # otherwise only pure IP addresses will work + option domain-name-servers 192.168.254.254; + option broadcast-address 192.168.254.255; + default-lease-time 86400; +} diff --git a/net/vde2/vde2-vdeplug4-git/iptables.rules.sample b/net/vde2/vde2-vdeplug4-git/iptables.rules.sample new file mode 100644 index 0000000..ac712ee --- /dev/null +++ b/net/vde2/vde2-vdeplug4-git/iptables.rules.sample @@ -0,0 +1,5 @@ +*filter +-A INPUT -i tun -j ACCEPT +-A FORWARD -s 192.168.254.0/255.255.255.0 -j ACCEPT +*nat +-A POSTROUTING -s 192.168.254.0/24 -j MASQUERADE diff --git a/net/vde2/vde2-vdeplug4-git/vde-config.sample b/net/vde2/vde2-vdeplug4-git/vde-config.sample new file mode 100644 index 0000000..f7e0660 --- /dev/null +++ b/net/vde2/vde2-vdeplug4-git/vde-config.sample @@ -0,0 +1,35 @@ +# Set options vde_switch program +# To activate this vde profile add it to /etc/conf.d/vde + +# Global options +VDE_NUMPORTS="32" # Number of ports (default 32) +VDE_HUB="no" # [yes|no] Make the switch act as a hub +VDE_FSTP="no" # [yes|no] Activate the fast spanning tree protocol +VDE_MAC="" # Set the Switch MAC address +VDE_PRIORITY="" # Set the priority for FST (MAC extension) +VDE_HASHSIZE="" # Hash table size + +# Options from datasock module +VDE_SOCK="/var/run/vde/sample.sock" # control directory pathname +VDE_SOCK_MODE="660" # Standard access mode for comm sockets (octal) +VDE_SOCK_GROUP="root" # Group owner for comm sockets + +# Options from consmgmt module +VDE_MANAGEMENT_SOCK="/var/run/vde/sample.mgmt" # path of the management UNIX socket +VDE_MANAGEMENT_SOCK_MODE="660" # management UNIX socket access mode (octal) + +# Other options to parse to vde_switch +VDE_OPTIONS="" + +# VDE with internet support +# You can use either tuntap method or slirpvde method. + +# Options from tuntap module +VDE_TAP="" # Enable routing through TAP tap interface (comma separated array eg.:"tap0,tap1"). + +# slirpvde daemon support +SLIRP="no" # [yes|no] enable/disable SLIRP daemon support +SLIRP_DHCP="no" # [yes|no] turn on the DHCP server for the network autoconfiguration of all the units connected to the VDE +SLIRP_NETWORK="" # specify the network address (default 10.0.2.0) +# other options to parse to slirpvde +SLIRP_OPTIONS="" diff --git a/net/vde2/vde2-vdeplug4-git/vde-connection.sample b/net/vde2/vde2-vdeplug4-git/vde-connection.sample new file mode 100644 index 0000000..4a75e1f --- /dev/null +++ b/net/vde2/vde2-vdeplug4-git/vde-connection.sample @@ -0,0 +1,6 @@ +# You can add vde switch connections below +# just without the # at the beginning: +# vde_plug /var/run/vde/sample.sock = vde_plug /var/run/vde/sample2.sock +# or if hosts are different use this syntax: +# vde_plug /var/run/vde/sample.sock = ssh host2 vde_plug /var/run/vde/sample.sock + diff --git a/net/vde2/vde2-vdeplug4-git/vde2.install b/net/vde2/vde2-vdeplug4-git/vde2.install new file mode 100644 index 0000000..bf538e0 --- /dev/null +++ b/net/vde2/vde2-vdeplug4-git/vde2.install @@ -0,0 +1,9 @@ +post_install() { + echo "vde config files should be placed in /etc/vde, sample files are provided." + echo "iptables and dhcpd sample files have been installed to '/usr/share/vde2'." + echo "Merge those examples, if needed to the according config files." +} + +post_upgrade() { + post_install $1 +} diff --git a/storage-util/megacli/.SRCINFO b/storage-util/megacli/.SRCINFO new file mode 100644 index 0000000..fd3354e --- /dev/null +++ b/storage-util/megacli/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = megacli + pkgdesc = CLI program for LSI MegaRAID cards, also works with some Dell PERC RAID cards. + pkgver = 8.07.14 + pkgrel = 3 + url = http://www.avagotech.com/ + arch = i686 + arch = x86_64 + license = custom + depends = ncurses5-compat-libs + source = https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip + source = LICENSE + sha256sums = d9b152ae3dab76a334b9251702dba3311ceed91b58aaf52d916eb4ba1c2ab6e9 + sha256sums = 9be6a8818ea1dccec65d48b86dd0cc62009dc3886229e3dce41192a241bd55c3 + +pkgname = megacli diff --git a/storage-util/megacli/.gitignore b/storage-util/megacli/.gitignore new file mode 100644 index 0000000..c1a848b --- /dev/null +++ b/storage-util/megacli/.gitignore @@ -0,0 +1,4 @@ +/*.tar.gz +/*.tar.xz +/pkg/ +/src/ diff --git a/storage-util/megacli/LICENSE b/storage-util/megacli/LICENSE new file mode 100644 index 0000000..98576b0 Binary files /dev/null and b/storage-util/megacli/LICENSE differ diff --git a/storage-util/megacli/PKGBUILD b/storage-util/megacli/PKGBUILD new file mode 100644 index 0000000..63c58b5 --- /dev/null +++ b/storage-util/megacli/PKGBUILD @@ -0,0 +1,28 @@ +#ng/ Maintainer: Karol Babioch + +pkgname=megacli +pkgver=8.07.14 +pkgrel=3 +pkgdesc='CLI program for LSI MegaRAID cards, also works with some Dell PERC RAID cards.' +arch=('i686' 'x86_64') +url='http://www.avagotech.com/' +license=('custom') +depends=('ncurses5-compat-libs') +source=("https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/${pkgver//./-}_MegaCLI.zip" + 'LICENSE') +sha256sums=('d9b152ae3dab76a334b9251702dba3311ceed91b58aaf52d916eb4ba1c2ab6e9' + '9be6a8818ea1dccec65d48b86dd0cc62009dc3886229e3dce41192a241bd55c3') + +build() { + cd "$srcdir" + bsdtar -xf "Linux/MegaCli-$pkgver-1.noarch.rpm" +} + +package() { + install -dm755 "$pkgdir/usr/bin" + case "$CARCH" in + 'i686') install -Dm755 "$srcdir/opt/MegaRAID/MegaCli/MegaCli" "$pkgdir/usr/bin/megacli" ;; + 'x86_64') install -Dm755 "$srcdir/opt/MegaRAID/MegaCli/MegaCli64" "$pkgdir/usr/bin/megacli" ;; + esac + install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/storage-util/msecli/PKGBUILD b/storage-util/msecli/PKGBUILD new file mode 100644 index 0000000..f647e98 --- /dev/null +++ b/storage-util/msecli/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: Lily Tsuru + +pkgname='msecli' +pkgdesc='Micron Storage Executive CLI for Linux' + +pkgver='10.01.012024.00' +pkgrel=1 + +url='https://www.micron.com/sales-support/downloads/software-drivers/storage-executive-software#cli' + +# There is an ARM(32?) binary available, but +# it's packaged completely differently, because of course it is. +# That will be handled later. +arch=('x86_64') + +depends=('zlib') + +# Needed because the installer (Please shame InstallBuilder!) kind of sucks. +makedepends=('fakeroot') + +source=( + 'https://www.micron.com/content/dam/micron/global/public/products/software/storage-executive-software/msecli/msecli-linux.run' +) + +sha256sums=( + '22ccdd0fff5f021f89036e9b491d6ba174a8f0b0d4feb7f80ae448dc78d4d717' +) + +b2sums=( + 'f9fdc4b199dc397be3dcc16edb9ecbc0397b16a2ba21eb235430c6d92990024978d28f85dfeacfd9b7ceac1638fc0cd2f68acbcf90bcd11e29bb0d68184a39aa' +) + +prepare() { + chmod +x ./msecli-linux.run +} + +# TODO: Less rickity verison +pkgver() { + ./msecli-linux.run --version | cut -d' ' -f 5 +} + +package() { + # "Extract" the installer, it will complain it can't write a file it wants to write, so we just || true. + # Additionally, remove uninstall files. We have a package manager for that :P + ./msecli-linux.run --mode unattended --unattendedmodeui none --prefix $pkgdir/opt/micron/msecli/ || true + rm $pkgdir/opt/micron/msecli/Uninstall* +}