diff options
-rw-r--r-- | libre/cdrkit/PKGBUILD | 59 | ||||
-rw-r--r-- | libre/virt-manager/PKGBUILD | 8 | ||||
-rw-r--r-- | libre/virt-manager/libre.patch | 2012 | ||||
-rw-r--r-- | libre/your-freedom/PKGBUILD | 6 | ||||
-rw-r--r-- | pcr/openrc-accessible/PKGBUILD | 2 | ||||
-rw-r--r-- | pcr/openrc-base/PKGBUILD | 6 | ||||
-rw-r--r-- | pcr/openrc-desktop/PKGBUILD | 4 | ||||
-rw-r--r-- | pcr/openrc-misc/PKGBUILD | 540 | ||||
-rw-r--r-- | pcr/openrc-misc/thermald.initd | 2 | ||||
-rw-r--r-- | pcr/openrc-net/PKGBUILD | 800 | ||||
-rw-r--r-- | pcr/openrc-net/syncthing.initd | 2 | ||||
-rw-r--r-- | pcr/openrc-net/wicd.initd | 2 | ||||
-rw-r--r-- | pcr/openrc-video/PKGBUILD | 16 | ||||
-rw-r--r-- | pcr/yacy-openrc/PKGBUILD | 19 | ||||
-rwxr-xr-x | pcr/yacy-openrc/yacy | 29 | ||||
-rw-r--r-- | pcr/yacy-openrc/yacy.install | 4 |
16 files changed, 803 insertions, 2708 deletions
diff --git a/libre/cdrkit/PKGBUILD b/libre/cdrkit/PKGBUILD deleted file mode 100644 index 8356736d4..000000000 --- a/libre/cdrkit/PKGBUILD +++ /dev/null @@ -1,59 +0,0 @@ -# $Id: PKGBUILD 186761 2013-05-31 04:50:41Z allan $ -# Maintainer (Arch): Andrea Scarpino <andrea@archlinux.org> -# Contributor (Arch): Alexander Fehr <pizzapunk gmail com> - -pkgname=cdrkit -_pkgname=$pkgname-libre -pkgver=1.1.11 -pkgrel=3.parabola2 -pkgdesc="Suite of programs for CD/DVD recording, ISO image creation, and audio CD extraction, without nonfree apple_driver utility" -arch=('i686' 'x86_64' 'armv7h') -url="http://$pkgname.org/" -license=('GPL2') -provides=('cdrtools') -conflicts=("$_pkgname" 'cdrtools') -replaces=("$_pkgname" 'cdrtools') -depends=('file' 'bzip2') -optdepends=('perl: for dirsplit') -makedepends=('cmake') -mksource=(http://$pkgname.org/releases/$pkgname-$pkgver.tar.gz) -source=(https://repo.parabola.nu/other/$_pkgname/$_pkgname-$pkgver.tar.gz) -mkmd5sums=('efe08e2f3ca478486037b053acd512e9') -md5sums=('SKIP') - -mksource() { - cd "$srcdir/$pkgname-$pkgver" - - # Remove nonfree apple_driver utility - rm -rvf {doc/genisoimage/README.hfs_boot,genisoimage/apple_driver.{8,c}} -} - -prepare() { - cd "$srcdir/$pkgname-$pkgver" - sed -i "s#sbin#bin#" netscsid/CMakeLists.txt -} - -build() { - cd "$srcdir/$pkgname-$pkgver" - make -} - -package() { - cd "$srcdir/$pkgname-$pkgver" - make PREFIX="$pkgdir/usr" install - - # Make symlinks for cdrtools compatibility - cd "$pkgdir/usr/bin" - ln -s wodim cdrecord - ln -s readom readcd - ln -s genisoimage mkisofs - ln -s genisoimage mkhybrid - ln -s icedax cdda2wav - - cd "$pkgdir/usr/share/man/man1" - ln -s wodim.1 cdrecord.1 - ln -s readom.1 readcd.1 - ln -s genisoimage.1 mkisofs.1 - ln -s genisoimage.1 mkhybrid.1 - ln -s icedax.1 cdda2wav.1 -} diff --git a/libre/virt-manager/PKGBUILD b/libre/virt-manager/PKGBUILD index 3f6fc48ed..a94d77832 100644 --- a/libre/virt-manager/PKGBUILD +++ b/libre/virt-manager/PKGBUILD @@ -7,8 +7,8 @@ pkgbase=virt-manager pkgname=virt-install -pkgver=1.4.2 -pkgrel=2.parabola1 +pkgver=1.4.3 +pkgrel=1.parabola1 pkgdesc="Console user interface for managing virtual machines, without non-FSDG compliant distros and operating systems support" arch=('any') url="http://virt-manager.org/" @@ -18,8 +18,8 @@ depends=('python2-gobject' 'libvirt-glib' 'libvirt-python2' makedepends=('intltool') source=("https://virt-manager.org/download/sources/virt-manager/virt-manager-$pkgver.tar.gz" 'libre.patch') -sha256sums=('43e440bb099facf59b59c27c2fc4eb2c42ef0d4ed8d67d93c9e3d98538b6d574' - '6df161707a56c6fcd00c326bef43994e44098288e8037b42c9ba4c953479eb43') +sha256sums=('528226b9a0fdd6cd66451a8217fc7c87f3deb6bebd08599c25fe5c7291fe6a24' + 'a96c04329a32c2e652fc7f3f21ec21ce649b2500e65911c9272c7fa340f6d938') prepare() { cd "$srcdir/$pkgbase-$pkgver" diff --git a/libre/virt-manager/libre.patch b/libre/virt-manager/libre.patch index 4f1afedc1..70a822bd0 100644 --- a/libre/virt-manager/libre.patch +++ b/libre/virt-manager/libre.patch @@ -1,414 +1,9 @@ --- virt-manager-1.4.2.orig/man/virt-install.pod 2017-07-17 08:06:02.000000000 -0500 +++ virt-manager-1.4.2/man/virt-manager.pod 2016-06-17 17:54:21.000000000 -0500 -@@ -1,1797 +1,115 @@ --=pod +@@ -401,36 +401,6 @@ - =head1 NAME - --virt-install - provision new virtual machines -+virt-manager - display the virtual machine desktop management tool - - =head1 SYNOPSIS - --B<virt-install> [OPTION]... -+B<virt-manager> [OPTIONS] - - =head1 DESCRIPTION - --B<virt-install> is a command line tool for creating new KVM, Xen, or Linux --container guests using the C<libvirt> hypervisor management library. --See the EXAMPLES section at the end of this document to quickly get started. -- --B<virt-install> tool supports graphical installations using (for example) --VNC or SPICE, as well as text mode installs over serial console. The guest --can be configured to use one or more virtual disks, network interfaces, --audio devices, physical USB or PCI devices, among others. -- --The installation media can be held locally or remotely on NFS, HTTP, FTP --servers. In the latter case C<virt-install> will fetch the minimal files --necessary to kick off the installation process, allowing the guest --to fetch the rest of the OS distribution as needed. PXE booting, and importing --an existing disk image (thus skipping the install phase) are also supported. -- --Given suitable command line arguments, C<virt-install> is capable of running --completely unattended, with the guest 'kickstarting' itself too. This allows --for easy automation of guest installs. -- --Many arguments have sub options, specified like opt1=foo,opt2=bar, etc. Try ----option=? to see a complete list of sub options associated with that --argument, example: virt-install --disk=? -+B<virt-manager> is a desktop tool for managing virtual machines. It -+provides the ability to control the lifecycle of existing machines -+(bootup/shutdown,pause/resume,suspend/restore), provision new virtual -+machines and various types of store, manage virtual networks, -+access the graphical console of virtual machines, and view performance -+statistics, all done locally or remotely. - --Most options are not required. Minimum requirements are --name, --memory, --guest storage (--disk or --filesystem), and an install option. -+=head1 OPTIONS + =back -- --=head1 CONNECTING TO LIBVIRT -- --=over 4 -- --=item B<--connect> URI -- --Connect to a non-default hypervisor. If this isn't specified, libvirt --will try and choose the most suitable default. -- --Some valid options here are: -- --=over 4 -- --=item qemu:///system -- --For creating KVM and QEMU guests to be run by the system libvirtd instance. --This is the default mode that virt-manager uses, and what most KVM users --want. -- --=item qemu:///session -- --For creating KVM and QEMU guests for libvirtd running as the regular user. -- --=item xen:/// -- --For connecting to Xen. -- --=item lxc:/// -- --For creating linux containers -- --=back -- --=back -- -- -- -- --=head1 GENERAL OPTIONS -- --General configuration parameters that apply to all types of guest installs. -- --=over 4 -- --=item B<-n> NAME -- --=item B<--name> NAME -- --Name of the new guest virtual machine instance. This must be unique amongst --all guests known to the hypervisor on the connection, including those not --currently active. To re-define an existing guest, use the C<virsh(1)> tool --to shut it down ('virsh shutdown') & delete ('virsh undefine') it prior to --running C<virt-install>. -- --=item B<--memory> OPTIONS -- --Memory to allocate for the guest, in MiB. This deprecates the -r/--ram option. --Sub options are available, like 'maxmemory', 'hugepages', 'hotplugmemorymax' --and 'hotplugmemoryslots'. The memory parameter is mapped to <currentMemory> element, --the 'maxmemory' sub-option is mapped to <memory> element and 'hotplugmemorymax' --and 'hotplugmemoryslots' are mapped to <maxMemory> element. -- --To configure memory modules which can be hotunplugged see B<--memdev> description. -- --Use --memory=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsMemoryAllocation> -- --=item B<--memorybacking> OPTIONS -- --This option will influence how virtual memory pages are backed by host pages. -- --Use --memorybacking=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsMemoryBacking> -- --=item B<--arch> ARCH -- --Request a non-native CPU architecture for the guest virtual machine. --If omitted, the host CPU architecture will be used in the guest. -- --=item B<--machine> MACHINE -- --The machine type to emulate. This will typically not need to be specified --for Xen or KVM, but is useful for choosing machine types of more exotic --architectures. -- --=item B<--metadata> OPT=VAL,[...] -- --Specify metadata values for the guest. Possible options include name, uuid, title, and description. This option deprecates -u/--uuid and --description. -- --Use --metadata=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsMetadata> -- --=item B<--events> OPT=VAL,[...] -- --Specify events values for the guest. Possible options include on_poweroff, on_reboot, and on_crash. -- --Use --events=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsEvents> -- --=item B<--resource> OPT=VAL,[...] -- --Specify resource partitioning for the guest. -- --Use --resource=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#resPartition> -- --=item B<--sysinfo> OPT=VAL,[...] -- --Configure sysinfo/SMBIOS values exposed to the guest OS. '--sysinfo host' can be used to expose the host's SMBIOS info to the VM, otherwise values can be manually specified. -- --Use --sysinfo=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsSysinfo> -- --=item B<--qemu-commandline> ARGS -- --Pass options directly to the qemu emulator. Only works for the libvirt qemu driver. The option can take a string of arguments, for example: -- -- --qemu-commandline="-display gtk,gl=on" -- --Environment variables are specified with 'env', for example: -- -- --qemu-commandline=env=DISPLAY=:0.1 -- --Complete details about the libvirt feature: L<https://libvirt.org/drvqemu.html#qemucommand> -- --=item B<--vcpus> OPTIONS -- --Number of virtual cpus to configure for the guest. If 'maxvcpus' is specified, --the guest will be able to hotplug up to MAX vcpus while the guest is running, --but will startup with VCPUS. -- --CPU topology can additionally be specified with sockets, cores, and threads. --If values are omitted, the rest will be autofilled preferring sockets over --cores over threads. -- --'cpuset' sets which physical cpus the guest can use. C<CPUSET> is a comma separated list of numbers, which can also be specified in ranges or cpus to exclude. Example: -- -- 0,2,3,5 : Use processors 0,2,3 and 5 -- 1-5,^3,8 : Use processors 1,2,4,5 and 8 -- --If the value 'auto' is passed, virt-install attempts to automatically determine --an optimal cpu pinning using NUMA data, if available. -- --Use --vcpus=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsCPUAllocation> -- --=item B<--numatune> OPTIONS -- --Tune NUMA policy for the domain process. Example invocations -- -- --numatune 1,2,3,4-7 -- --numatune 1-3,5,mode=preferred -- --Specifies the numa nodes to allocate memory from. This has the same syntax --as C<--vcpus cpuset=> option. mode can be one of 'interleave', 'preferred', or --'strict' (the default). See 'man 8 numactl' for information about each --mode. -- --Use --numatune=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsNUMATuning> -- --=item B<--memtune> OPTIONS -- --Tune memory policy for the domain process. Example invocations -- -- --memtune 1000 -- --memtune hard_limit=100,soft_limit=60,swap_hard_limit=150,min_guarantee=80 -- --Use --memtune=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsMemoryTuning> -- --=item B<--blkiotune> OPTIONS -- --Tune blkio policy for the domain process. Example invocations -- -- --blkiotune 100 -- --blkiotune weight=100,device_path=/dev/sdc,device_weight=200 -- --Use --blkiotune=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsBlockTuning> -- --=item B<--cpu> MODEL[,+feature][,-feature][,match=MATCH][,vendor=VENDOR],... -- --Configure the CPU model and CPU features exposed to the guest. The only --required value is MODEL, which is a valid CPU model as known to libvirt. -- --Libvirt's feature policy values force, require, optional, disable, or forbid, --or with the shorthand '+feature' and '-feature', which equal 'force=feature' --and 'disable=feature' respectively -- --Some examples: -- --=over 4 -- --=item B<--cpu core2duo,+x2apic,disable=vmx> -- --Expose the core2duo CPU model, force enable x2apic, but do not expose vmx -- --=item B<--cpu host> -- --Expose the host CPUs configuration to the guest. This enables the guest to --take advantage of many of the host CPUs features (better performance), but --may cause issues if migrating the guest to a host without an identical CPU. -- --=item B<--cpu host-model-only> -- --Expose the nearest host CPU model configuration to the guest. --It is the best CPU which can be used for a guest on any of the hosts. -- --=item B<--cpu cell0.memory=1234,cell0.cpus=0-3,cell1.memory=5678,cell1.cpus=4-7> -- --Example of specifying two NUMA cells. This will generate XML like: -- -- <cpu> -- <numa> -- <cell cpus="0-3" memory="1234"/> -- <cell cpus="4-7" memory="5678"/> -- </numa> -- </cpu> -- --=back -- --Use --cpu=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsCPU> -- --=item B<--security> type=TYPE[,label=LABEL][,relabel=yes|no] -- --Configure domain security driver settings. Type can be either 'static' or --'dynamic'. 'static' configuration requires a security LABEL. Specifying --LABEL without TYPE implies static configuration. -- --To have libvirt automatically apply your static label, you must specify --relabel=yes. Otherwise disk images must be manually labeled by the admin, --including images that virt-install is asked to create. -- --Use --security=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#seclabel> -- --=item B<--features> FEAT=on|off,... -- --Set elements in the guests <features> XML on or off. Examples include acpi, --apic, eoi, privnet, and hyperv features. Some examples: -- --=over 4 -- --=item B<--features eoi=on> -- --Enable APIC PV EOI -- --=item B<--features hyperv_vapic=on,hyperv_spinlocks=off> -- --Enable hypver VAPIC, but disable spinlocks -- --=item B<--features kvm_hidden=on> -- --Allow the KVM hypervisor signature to be hidden from the guest -- --=item B<--features pvspinlock=on> -- --Notify the guest that the host supports paravirtual spinlocks for example by exposing the pvticketlocks mechanism. -- --=item B<--features gic_version=2> -- --This is relevant only for ARM architectures. Possible values are "host" or --version number. -- --=item B<--features smm=on> -- --This enables System Management Mode of hypervisor. Some UEFI firmwares may --require this feature to be present. (QEMU supports SMM only with q35 machine --type.) -- --=back -- --Use --features=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsFeatures> -- --=item B<--clock> offset=OFFSET,TIMER_OPT=VAL,... -- --Configure the guest's <clock> XML. Some supported options: -- --=over 4 -- --=item B<--clock offset=OFFSET> -- --Set the clock offset, ex. 'utc' or 'localtime' -- --=item B<--clock TIMER_present=no> -- --Disable a boolean timer. TIMER here might be hpet, kvmclock, etc. -- --=item B<--clock TIMER_tickpolicy=VAL> -- --Set a timer's tickpolicy value. TIMER here might be rtc, pit, etc. VAL --might be catchup, delay, etc. Refer to the libvirt docs for all values. -- --=back -- --Use --clock=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsTime> -- -- --=item B<--pm> OPTIONS -- --Configure guest power management features. Example suboptions include suspend_to_mem=on|off and suspend_to_disk=on|off -- --Use --pm=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsPowerManagement> -- -- -- --=back -- --=head1 INSTALLATION OPTIONS -- --=over 4 -- --=item B<-c> OPTIONS -- --=item B<--cdrom> OPTIONS -- --File or device used as a virtual CD-ROM device. --It can be path to an ISO image, or to a CDROM device. It can also be a URL --from which to fetch/access a minimal boot ISO image. The URLs take the same --format as described for the C<--location> argument. If a cdrom has been --specified via the C<--disk> option, and neither C<--cdrom> nor any other --install option is specified, the C<--disk> cdrom is used as the install media. -- --=item B<-l> LOCATION -- --=item B<--location> OPTIONS -- --Distribution tree installation source. virt-install can recognize --certain distribution trees and fetches a bootable kernel/initrd pair to --launch the install. -- --With libvirt 0.9.4 or later, network URL installs work for remote connections. --virt-install will download kernel/initrd to the local machine, and then --upload the media to the remote host. This option requires the URL to --be accessible by both the local and remote host. -- ----location allows things like --extra-args for kernel arguments, and using --initrd-inject. If you want to use those options with CDROM media, you have a few options: -- --* Run virt-install as root and do --location ISO -- --* Mount the ISO at a local directory, and do --location DIRECTORY -- --* Mount the ISO at a local directory, export that directory over local http, and do --location http://localhost/DIRECTORY -- --The C<LOCATION> can take one of the following forms: -- --=over 4 -- --=item http://host/path -- --An HTTP server location containing an installable distribution image. -- --=item ftp://host/path -- --An FTP server location containing an installable distribution image. -- --=item nfs:host:/path or nfs://host/path -- --An NFS server location containing an installable distribution image. This requires running virt-install as root. -- --=item DIRECTORY -- --Path to a local directory containing an installable distribution image. Note that the directory will not be accessible by the guest after initial boot, so the OS installer will need another way to access the rest of the install media. -- --=item ISO -- --Mount the ISO and probe the directory. This requires running virt-install as root, and has the same VM access caveat as DIRECTORY. -- --=back -- -Some distro specific url samples: - -=over 4 @@ -439,40 +34,13 @@ - -=back - --=item B<--pxe> -- --Use the PXE boot protocol to load the initial ramdisk and kernel for starting --the guest installation process. -- --=item B<--import> -- --Skip the OS installation process, and build a guest around an existing --disk image. The device used for booting is the first device specified via --C<--disk> or C<--filesystem>. -- --=item B<--livecd> -- --Specify that the installation media is a live CD and thus the guest --needs to be configured to boot off the CDROM device permanently. It --may be desirable to also use the C<--disk none> flag in combination. -- --=item B<-x> EXTRA -- --=item B<--extra-args> OPTIONS -- --Additional kernel command line arguments to pass to the installer when --performing a guest install from C<--location>. One common usage is specifying --an anaconda kickstart file for automated installs, such as ----extra-args "ks=http://myserver/my.ks" -- --=item B<--initrd-inject> PATH -- --Add PATH to the root of the initrd fetched with C<--location>. This can be --used to run an automated install without requiring a network hosted kickstart --file: -- ----initrd-inject=/path/to/my.ks --extra-args "ks=file:/my.ks" -- + =item B<--pxe> + + Use the PXE boot protocol to load the initial ramdisk and kernel for starting +@@ -465,21 +435,6 @@ + + --initrd-inject=/path/to/my.ks --extra-args "ks=file:/my.ks" + -=item B<--os-variant> OS_VARIANT - -Optimize the guest configuration for a specific operating system (ex. @@ -488,1253 +56,40 @@ -Use the command "osinfo-query os" to get the list of the accepted OS -variants. - --=item B<--boot> BOOTOPTS -- --Optionally specify the post-install VM boot configuration. This option allows --specifying a boot device order, permanently booting off kernel/initrd with --option kernel arguments, and enabling a BIOS boot menu (requires libvirt --0.8.3 or later) -- ----boot can be specified in addition to other install options --(such as --location, --cdrom, etc.) or can be specified on its own. In --the latter case, behavior is similar to the --import install option: there --is no 'install' phase, the guest is just created and launched as specified. -- --Some examples: -- --=over 4 -- --=item B<--boot cdrom,fd,hd,network,menu=on> -- --Set the boot device priority as first cdrom, first floppy, first harddisk, --network PXE boot. Additionally enable BIOS boot menu prompt. -- --=item B<--boot kernel=KERNEL,initrd=INITRD,kernel_args="console=/dev/ttyS0"> -- --Have guest permanently boot off a local kernel/initrd pair, with the --specified kernel options. -- --=item B<--boot kernel=KERNEL,initrd=INITRD,dtb=DTB> -- --Have guest permanently boot off a local kernel/initrd pair with an --external device tree binary. DTB can be required for some non-x86 --configurations like ARM or PPC -- --=item B<--boot loader=BIOSPATH> -- --Use BIOSPATH as the virtual machine BIOS. -- --=item B<--boot menu=on,useserial=on> -- --Enable the bios boot menu, and enable sending bios text output over --serial console. -- --=item B<--boot init=INITPATH> -- --Path to a binary that the container guest will init. If a root C<--filesystem> --has been specified, virt-install will default to /sbin/init, otherwise --will default to /bin/sh. -- --=item B<--boot uefi> -- --Configure the VM to boot from UEFI. In order for virt-install to know the --correct UEFI parameters, libvirt needs to be advertising known UEFI binaries --via domcapabilities XML, so this will likely only work if using properly --configured distro packages. -- --=item B<--boot loader=/.../OVMF_CODE.fd,loader_ro=yes,loader_type=pflash,nvram_template=/.../OVMF_VARS.fd,loader_secure=no> -- --Specify that the virtual machine use the custom OVMF binary as boot firmware, --mapped as a virtual flash chip. In addition, request that libvirt instantiate --the VM-specific UEFI varstore from the custom "/.../OVMF_VARS.fd" varstore --template. This is the recommended UEFI setup, and should be used if ----boot uefi doesn't know about your UEFI binaries. If your UEFI firmware --supports Secure boot feature you can enable it via loader_secure. -- --=back -- --Use --boot=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsOS> -- --=item B<--idmap> OPTIONS -- --If the guest configuration declares a UID or GID mapping, --the 'user' namespace will be enabled to apply these. --A suitably configured UID/GID mapping is a pre-requisite to --make containers secure, in the absence of sVirt confinement. -- ----idmap can be specified to enable user namespace for LXC containers -- --Example: -- --idmap uid_start=0,uid_target=1000,uid_count=10,gid_start=0,gid_target=1000,gid_count=10 -- --Use --idmap=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsOSContainer> -- --=back -- -- -- -- -- --=head1 STORAGE OPTIONS -- --=over 4 -- --=item B<--disk> OPTIONS -- --Specifies media to use as storage for the guest, with various options. The --general format of a disk string is -- -- --disk opt1=val1,opt2=val2,... -- --The simplest invocation to create a new 10G disk image and associated disk device: -- -- --disk size=10 -- --virt-install will generate a path name, and place it in the default image location for the hypervisor. To specify media, the command can either be: -- -- --disk /some/storage/path[,opt1=val1]... -- --or explicitly specify one of the following arguments: -- --=over 4 -- --=item B<path> -- --A path to some storage media to use, existing or not. Existing media can be --a file or block device. -- --Specifying a non-existent path implies attempting to create the new storage, --and will require specifying a 'size' value. Even for remote hosts, virt-install --will try to use libvirt storage APIs to automatically create the given path. -- --If the hypervisor supports it, B<path> can also be a network URL, like --http://example.com/some-disk.img . For network paths, they hypervisor will --directly access the storage, nothing is downloaded locally. -- --=item B<pool> -- --An existing libvirt storage pool name to create new storage on. Requires --specifying a 'size' value. -- --=item B<vol> -- --An existing libvirt storage volume to use. This is specified as --'poolname/volname'. -- --=back -- --Other available options: -- --=over 4 -- --=item B<device> -- --Disk device type. Value can be 'cdrom', 'disk', 'lun' or 'floppy'. Default is --'disk'. If a 'cdrom' is specified, and no install method is chosen, the --cdrom is used as the install media. -- --=item B<boot_order> -- --Guest installation with multiple disks will need this parameter to boot correctly after being installed. A boot_order parameter will take values 1,2,3,... Devices with lower value has higher priority. -- --=item B<bus> -- --Disk bus type. Value can be 'ide', 'sata', 'scsi', 'usb', 'virtio' or 'xen'. --The default is hypervisor dependent since not all hypervisors support all --bus types. -- --=item B<removable> -- --Sets the removable flag (/sys/block/$dev/removable on Linux). Only --used with QEMU and bus=usb. Value can be 'on' or 'off'. -- --=item B<readonly> -- --Set drive as readonly (takes 'on' or 'off') -- --=item B<shareable> -- --Set drive as shareable (takes 'on' or 'off') -- --=item B<size> -- --size (in GiB) to use if creating new storage -- --=item B<sparse> -- --whether to skip fully allocating newly created storage. Value is 'yes' or --'no'. Default is 'yes' (do not fully allocate) unless it isn't --supported by the underlying storage type. -- --The initial time taken to fully-allocate the guest virtual disk (sparse=no) --will be usually balanced by faster install times inside the guest. Thus --use of this option is recommended to ensure consistently high performance --and to avoid I/O errors in the guest should the host filesystem fill up. -- --=item B<backing_store> -- --Path to a disk to use as the backing store for the newly created image. -- --=item B<backing_format> -- --Disk image format of B<backing_store> -- --=item B<cache> -- --The cache mode to be used. The host pagecache provides cache memory. --The cache value can be 'none', 'writethrough', 'directsync', 'unsafe' --or 'writeback'. --'writethrough' provides read caching. 'writeback' provides --read and write caching. 'directsync' bypasses the host page --cache. 'unsafe' may cache all content and ignore flush requests from --the guest. -- --=item B<discard> -- --Whether discard (also known as "trim" or "unmap") requests are ignored --or passed to the filesystem. The value can be either "unmap" (allow --the discard request to be passed) or "ignore" (ignore the discard --request). Since 1.0.6 (QEMU and KVM only) -- --=item B<format> -- --Disk image format. For file volumes, this can be 'raw', 'qcow2', 'vmdk', etc. See format types in L<http://libvirt.org/storage.html> for possible values. This is often mapped to the B<driver_type> value as well. -- --If not specified when creating file images, this will default to 'qcow2'. -- --If creating storage, this will be the format of the new image. If using an existing image, this overrides libvirt's format auto-detection. -- --=item B<driver_name> -- --Driver name the hypervisor should use when accessing the specified --storage. Typically does not need to be set by the user. -- --=item B<driver_type> -- --Driver format/type the hypervisor should use when accessing the specified --storage. Typically does not need to be set by the user. -- --=item B<io> -- --Disk IO backend. Can be either "threads" or "native". -- --=item B<error_policy> -- --How guest should react if a write error is encountered. Can be one of --"stop", "ignore", or "enospace" -- --=item B<serial> -- --Serial number of the emulated disk device. This is used in linux guests --to set /dev/disk/by-id symlinks. An example serial number might be: --WD-WMAP9A966149 -- --=item B<startup_policy> -- --It defines what to do with the disk if the source file is not accessible. See --possible values in L<http://www.libvirt.org/formatdomain.html#elementsDisks> -- --=back -- --See the examples section for some uses. This option deprecates -f/--file, ---s/--file-size, --nonsparse, and --nodisks. -- --Use --disk=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsDisks> -- --=item B<--filesystem> -- --Specifies a directory on the host to export to the guest. The most simple --invocation is: -- -- --filesystem /source/on/host,/target/point/in/guest -- --Which will work for recent QEMU and linux guest OS or LXC containers. For --QEMU, the target point is just a mounting hint in sysfs, so will not be --automatically mounted. -- --The following explicit options can be specified: -- --=over 4 -- --=item B<type> -- --The type or the source directory. Valid values are 'mount' (the default) or --'template' for OpenVZ templates. -- --=item B<mode> -- --The access mode for the source directory from the guest OS. Only used with --QEMU and type=mount. Valid modes are 'passthrough' (the default), 'mapped', --or 'squash'. See libvirt domain XML documentation for more info. -- --=item B<source> -- --The directory on the host to share. -- --=item B<target> -- --The mount location to use in the guest. -- --=back -- --Use --filesystem=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsFilesystems> -- --=back -- -- -- -- -- --=head1 NETWORKING OPTIONS -- --=over 4 -- --=item B<-w> OPTIONS -- --=item B<--network> OPTIONS -- --Connect the guest to the host network. The value for C<NETWORK> can take --one of 4 formats: -- --=over 4 -- --=item bridge=BRIDGE -- --Connect to a bridge device in the host called C<BRIDGE>. Use this option if --the host has static networking config & the guest requires full outbound --and inbound connectivity to/from the LAN. Also use this if live migration --will be used with this guest. -- --=item network=NAME -- --Connect to a virtual network in the host called C<NAME>. Virtual networks --can be listed, created, deleted using the C<virsh> command line tool. In --an unmodified install of C<libvirt> there is usually a virtual network --with a name of C<default>. Use a virtual network if the host has dynamic --networking (eg NetworkManager), or using wireless. The guest will be --NATed to the LAN by whichever connection is active. -- --=item type=direct,source=IFACE[,source_mode=MODE] -- --Direct connect to host interface IFACE using macvtap. -- --=item user -- --Connect to the LAN using SLIRP. Only use this if running a QEMU guest as --an unprivileged user. This provides a very limited form of NAT. -- --=item none -- --Tell virt-install not to add any default network interface. -- --=back -- --If this option is omitted a single NIC will be created in the guest. If --there is a bridge device in the host with a physical interface enslaved, --that will be used for connectivity. Failing that, the virtual network --called C<default> will be used. This option can be specified multiple --times to setup more than one NIC. -- --Other available options are: -- --=over 4 -- --=item B<model> -- --Network device model as seen by the guest. Value can be any nic model supported --by the hypervisor, e.g.: 'e1000', 'rtl8139', 'virtio', ... -- --=item B<mac> -- --Fixed MAC address for the guest; If this parameter is omitted, or the value --C<RANDOM> is specified a suitable address will be randomly generated. For --Xen virtual machines it is required that the first 3 pairs in the MAC address --be the sequence '00:16:3e', while for QEMU or KVM virtual machines it must --be '52:54:00'. -- --=item B<filterref> -- --Controlling firewall and network filtering in libvirt. Value can be any nwfilter --defined by the C<virsh> 'nwfilter' subcommands. Available filters can be listed --by running 'virsh nwfilter-list', e.g.: 'clean-traffic', 'no-mac-spoofing', ... -- --=item B<virtualport_type> -- --The type of virtual port profile, one the following values -- --=over 4 -- --=item C<802.Qbg> -- --The following additional parameters are accepted -- --=over 4 -- --=item B<virtualport_managerid> -- -- --The VSI Manager ID identifies the database containing the VSI type --and instance definitions. This is an integer value and the value --0 is reserved. -- --=item B<virtualport_typeid> -- --The VSI Type ID identifies a VSI type characterizing the network --access. VSI types are typically managed by network administrator. --This is an integer value. -- --=item B<virtualport_typeidversion> -- --The VSI Type Version allows multiple versions of a VSI Type. This --is an integer value. -- --=item B<virtualport_instanceid> -- --The VSI Instance ID Identifier is generated when a VSI instance --(i.e. a virtual interface of a virtual machine) is created. This --is a globally unique identifier. -- --=back -- --=item C<802.Qbh> -- --The following additional parameters are accepted -- --=over 4 -- --=item B<virtualport_profileid> -- --The profile ID contains the name of the port profile that is to --be applied to this interface. This name is resolved by the port --profile database into the network parameters from the port profile, --and those network parameters will be applied to this interface. -- --=back -- --=item C<openvswitch> -- --The following additional parameters are accepted -- --=over 4 -- --=item B<virtualport_profileid> -- --The OpenVSwitch port profile for the interface -- --=item B<virtualport_interfaceid> -- --A UUID to uniquely identify the interface. If omitted one will --be generated automatically -- --=back -- --=item C<midonet> -- --The following additional parameters are accepted -- --=over 4 -- --=item B<virtualport_interfaceid> -- --A UUID identifying the port in the network to which the interface --will be bound -- --=back -- --=back -- --=back -- --Use --network=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsNICS> -- --This option deprecates -m/--mac, -b/--bridge, and --nonetworks -- --=back -- -- -- -- -- --=head1 GRAPHICS OPTIONS -- --If no graphics option is specified, C<virt-install> will try to select --the appropriate graphics if the DISPLAY environment variable is set, --otherwise '--graphics none' is used. -- --=over 4 -- --=item B<--graphics> TYPE,opt1=arg1,opt2=arg2,... -- --Specifies the graphical display configuration. This does not configure any --virtual hardware, just how the guest's graphical display can be accessed. --Typically the user does not need to specify this option, virt-install will --try and choose a useful default, and launch a suitable connection. -- --General format of a graphical string is -- -- --graphics TYPE,opt1=arg1,opt2=arg2,... -- --For example: -- -- --graphics vnc,password=foobar -- --The supported options are: -- --=over 4 -- --=item B<type> -- --The display type. This is one of: -- --vnc -- --Setup a virtual console in the guest and export it as a VNC server in --the host. Unless the C<port> parameter is also provided, the VNC --server will run on the first free port number at 5900 or above. The --actual VNC display allocated can be obtained using the C<vncdisplay> --command to C<virsh> (or L<virt-viewer(1)> can be used which handles this --detail for the use). -- --spice -- --Export the guest's console using the Spice protocol. Spice allows advanced --features like audio and USB device streaming, as well as improved graphical --performance. -- --Using spice graphic type will work as if those arguments were given: -- -- --video qxl --channel spicevmc -- --none -- --No graphical console will be allocated for the guest. Guests will likely --need to have a text console configured on the first --serial port in the guest (this can be done via the --extra-args option). The --command 'virsh console NAME' can be used to connect to the serial device. -- --=item B<port> -- --Request a permanent, statically assigned port number for the guest --console. This is used by 'vnc' and 'spice' -- --=item B<tlsport> -- --Specify the spice tlsport. -- --=item B<listen> -- --Address to listen on for VNC/Spice connections. Default is typically 127.0.0.1 --(localhost only), but some hypervisors allow changing this globally (for --example, the qemu driver default can be changed in /etc/libvirt/qemu.conf). --Use 0.0.0.0 to allow access from other machines. -- --Use 'none' to specify that the display server should not listen on any --port. The display server can be accessed only locally through --libvirt unix socket (virt-viewer with --attach for instance). -- --Use 'socket' to have the VM listen on a libvirt generated unix socket --path on the host filesystem. -- --This is used by 'vnc' and 'spice' -- --=item B<keymap> -- --Request that the virtual console be configured to run with a specific --keyboard layout. If the special value 'local' is specified, virt-install --will attempt to configure to use the same keymap as the local system. A value --of 'none' specifically defers to the hypervisor. Default behavior is --hypervisor specific, but typically is the same as 'local'. This is used --by 'vnc' and 'spice'. -- --=item B<password> -- --Request a console password, required at connection time. Beware, this info may --end up in virt-install log files, so don't use an important password. This --is used by 'vnc' and 'spice' -- --=item B<gl> -- --Whether to use OpenGl accelerated rendering. Value is 'yes' or 'no'. This is --used by 'spice'. -- --=item B<rendernode> -- --DRM render node path to use. This is used when 'gl' is enabled. -- --=back -- --Use --graphics=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsGraphics> -- --This deprecates the following options: --vnc, --vncport, --vnclisten, -k/--keymap, --sdl, --nographics -- --=item B<--noautoconsole> -- --Don't automatically try to connect to the guest console. The default behaviour --is to launch L<virt-viewer(1)> to display the graphical console, or to run the --C<virsh> C<console> command to display the text console. Use of this parameter --will disable this behaviour. -- --=back -- -- -- -- --=head1 VIRTUALIZATION OPTIONS -- --Options to override the default virtualization type choices. -- --=over 4 -- --=item B<-v> -- --=item B<--hvm> -- --Request the use of full virtualization, if both para & full virtualization are --available on the host. This parameter may not be available if connecting to a --Xen hypervisor on a machine without hardware virtualization support. This --parameter is implied if connecting to a QEMU based hypervisor. -- --=item B<-p> -- --=item B<--paravirt> -- --This guest should be a paravirtualized guest. If the host supports both --para & full virtualization, and neither this parameter nor the C<--hvm> --are specified, this will be assumed. -- --=item B<--container> -- --This guest should be a container type guest. This option is only required --if the hypervisor supports other guest types as well (so for example this --option is the default behavior for LXC and OpenVZ, but is provided for --completeness). -- --=item B<--virt-type> -- --The hypervisor to install on. Example choices are kvm, qemu, or xen. --Available options are listed via 'virsh capabilities' in the <domain> tags. -- --This deprecates the --accelerate option, which is now the default behavior. To install a plain QEMU guest, use '--virt-type qemu' -- --=back -- -- -- -- -- --=head1 DEVICE OPTIONS -- --All devices have a set of B<address.*> options for configuring the --particulars of the device's address on its parent controller or bus. --See C<http://libvirt.org/formatdomain.html#elementsAddress> for details. -- --=over 4 -- --=item B<--controller> OPTIONS -- --Attach a controller device to the guest. TYPE is one of: --B<ide>, B<fdc>, B<scsi>, B<sata>, B<virtio-serial>, or B<usb>. -- --Controller also supports the special values B<usb2> and B<usb3> to --specify which version of the USB controller should be used (version 2 --or 3). -- --=over 4 -- --=item B<model> -- --Controller model. These may vary according to the hypervisor and its --version. Most commonly used models are e.g. B<auto>, B<virtio-scsi> --for the B<scsi> controller, B<ehci> or B<none> for the B<usb> --controller. For full list and further details on controllers/models, --see C<http://libvirt.org/formatdomain.html#elementsControllers>. -- --=item B<address> -- --Shorthand for setting a manual PCI address from an lscpi style string. --The preferred method for setting this is using the address.* parameters. -- --=item B<index> -- --A decimal integer describing in which order the bus controller is --encountered, and to reference the controller bus. -- --=item B<master> -- --Applicable to USB companion controllers, to define the master bus startport. -- --=back -- --Examples: -- --=over 4 -- --=item B<--controller usb,model=ich9-ehci1,address=0:0:4.0,index=0> -- --Adds a ICH9 EHCI1 USB controller on PCI address 0:0:4.0 -- --=item B<--controller usb,model=ich9-uhci2,address=0:0:4.7,index=0,master=2> -- --Adds a ICH9 UHCI2 USB companion controller for the previous master --controller, ports start from port number 2. -- --The parameter multifunction='on' will be added automatically to the --proper device (if needed). This applies to all PCI devices. -- --=back -- --Use --controller=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsControllers> -- -- --=item B<--input> OPTIONS -- --Attach an input device to the guest. Example input device types are mouse, tablet, or keyboard. -- --Use --input=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsInput> -- -- --=item B<--hostdev> OPTIONS -- --=item B<--host-device> OPTIONS -- --Attach a physical host device to the guest. Some example values for HOSTDEV: -- --=over 4 -- --=item B<--hostdev pci_0000_00_1b_0> -- --A node device name via libvirt, as shown by 'virsh nodedev-list' -- --=item B<--hostdev 001.003> -- --USB by bus, device (via lsusb). -- --=item B<--hostdev 0x1234:0x5678> -- --USB by vendor, product (via lsusb). -- --=item B<--hostdev 1f.01.02> -- --PCI device (via lspci). -- --=back -- --Use --hostdev=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsHostDev> -- --=item B<--sound> MODEL -- --Attach a virtual audio device to the guest. MODEL specifies the emulated --sound card model. Possible values are ich6, ich9, ac97, es1370, sb16, pcspk, --or default. 'default' will try to pick the best model that the specified --OS supports. -- --This deprecates the old --soundhw option. -- --Use --sound=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsSound> -- --=item B<--watchdog> MODEL[,action=ACTION] -- --Attach a virtual hardware watchdog device to the guest. This requires a --daemon and device driver in the guest. The watchdog fires a signal when --the virtual machine appears to hung. ACTION specifies what libvirt will do --when the watchdog fires. Values are -- --=over 4 -- --=item B<reset> -- --Forcefully reset the guest (the default) -- --=item B<poweroff> -- --Forcefully power off the guest -- --=item B<pause> -- --Pause the guest -- --=item B<none> -- --Do nothing -- --=item B<shutdown> -- --Gracefully shutdown the guest (not recommended, since a hung guest probably --won't respond to a graceful shutdown) -- --=back -- --MODEL is the emulated device model: either i6300esb (the default) or ib700. --Some examples: -- --Use the recommended settings: -- ----watchdog default -- --Use the i6300esb with the 'poweroff' action -- ----watchdog i6300esb,action=poweroff -- --Use --watchdog=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsWatchdog> -- --=item B<--parallel> OPTIONS -- --=item B<--serial> OPTIONS -- --Specifies a serial device to attach to the guest, with various options. The --general format of a serial string is -- -- --serial type,opt1=val1,opt2=val2,... -- ----serial and --parallel devices share all the same options, unless otherwise --noted. Some of the types of character device redirection are: -- --=over 4 -- --=item B<--serial pty> -- --Pseudo TTY. The allocated pty will be listed in the running guests XML --description. -- --=item B<--serial dev,path=HOSTPATH> -- --Host device. For serial devices, this could be /dev/ttyS0. For parallel --devices, this could be /dev/parport0. -- --=item B<--serial file,path=FILENAME> -- --Write output to FILENAME. -- --=item B<--serial pipe,path=PIPEPATH> -- --Named pipe (see pipe(7)) -- --=item B<--serial tcp,host=HOST:PORT,mode=MODE,protocol=PROTOCOL> -- --TCP net console. MODE is either 'bind' (wait for connections on HOST:PORT) --or 'connect' (send output to HOST:PORT), default is 'bind'. HOST defaults --to '127.0.0.1', but PORT is required. PROTOCOL can be either 'raw' or 'telnet' --(default 'raw'). If 'telnet', the port acts like a telnet server or client. --Some examples: -- --Wait for connections on any address, port 4567: -- ----serial tcp,host=0.0.0.0:4567 -- --Connect to localhost, port 1234: -- ----serial tcp,host=:1234,mode=connect -- --Wait for telnet connection on localhost, port 2222. The user could then --connect interactively to this console via 'telnet localhost 2222': -- ----serial tcp,host=:2222,mode=bind,protocol=telnet -- --=item B<--serial udp,host=CONNECT_HOST:PORT,bind_host=BIND_HOST:BIND_PORT> -- --UDP net console. HOST:PORT is the destination to send output to (default --HOST is '127.0.0.1', PORT is required). BIND_HOST:BIND_PORT is the optional --local address to bind to (default BIND_HOST is 127.0.0.1, but is only set if --BIND_PORT is specified). Some examples: -- --Send output to default syslog port (may need to edit /etc/rsyslog.conf --accordingly): -- ----serial udp,host=:514 -- --Send output to remote host 192.168.10.20, port 4444 (this output can be --read on the remote host using 'nc -u -l 4444'): -- ----serial udp,host=192.168.10.20:4444 -- --=item B<--serial unix,path=UNIXPATH,mode=MODE> -- --Unix socket, see unix(7). MODE has similar behavior and defaults as ----serial tcp,mode=MODE -- --=back -- --Use --serial=? or --parallel=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsCharSerial> and L<http://libvirt.org/formatdomain.html#elementsCharParallel> -- --=item B<--channel> -- --Specifies a communication channel device to connect the guest and host --machine. This option uses the same options as --serial and --parallel --for specifying the host/source end of the channel. Extra 'target' options --are used to specify how the guest machine sees the channel. -- --Some of the types of character device redirection are: -- --=over 4 -- --=item B<--channel SOURCE,target_type=guestfwd,target_address=HOST:PORT> -- --Communication channel using QEMU usermode networking stack. The guest can --connect to the channel using the specified HOST:PORT combination. -- --=item B<--channel SOURCE,target_type=virtio[,name=NAME]> -- --Communication channel using virtio serial (requires 2.6.34 or later host and --guest). Each instance of a virtio --channel line is exposed in the --guest as /dev/vport0p1, /dev/vport0p2, etc. NAME is optional metadata, and --can be any string, such as org.linux-kvm.virtioport1. --If specified, this will be exposed in the guest at --/sys/class/virtio-ports/vport0p1/NAME -- --=item B<--channel spicevmc,target_type=virtio[,name=NAME]> -- --Communication channel for QEMU spice agent, using virtio serial --(requires 2.6.34 or later host and guest). NAME is optional metadata, --and can be any string, such as the default com.redhat.spice.0 that --specifies how the guest will see the channel. -- --=back -- --Use --channel=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsCharChannel> -- --=item B<--console> -- --Connect a text console between the guest and host. Certain guest and --hypervisor combinations can automatically set up a getty in the guest, so --an out of the box text login can be provided (target_type=xen for xen --paravirt guests, and possibly target_type=virtio in the future). -- --Example: -- --=over 4 -- --=item B<--console pty,target_type=virtio> -- --Connect a virtio console to the guest, redirected to a PTY on the host. --For supported guests, this exposes /dev/hvc0 in the guest. See --http://fedoraproject.org/wiki/Features/VirtioSerial for more info. virtio --console requires libvirt 0.8.3 or later. -- --=back -- --Use --console=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsCharConsole> -- --=item B<--video> OPTIONS -- --Specify what video device model will be attached to the guest. Valid values --for VIDEO are hypervisor specific, but some options for recent kvm are --cirrus, vga, qxl, virtio, or vmvga (vmware). -- --Use --video=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsVideo> -- --=item B<--smartcard> MODE[,OPTIONS] -- --Configure a virtual smartcard device. -- --Mode is one of B<host>, B<host-certificates>, or B<passthrough>. Additional --options are: -- --=over 4 -- --=item B<type> -- --Character device type to connect to on the host. This is only applicable --for B<passthrough> mode. -- --=back -- --An example invocation: -- --=over 4 -- --=item B<--smartcard passthrough,type=spicevmc> -- --Use the smartcard channel of a SPICE graphics device to pass smartcard info --to the guest -- --=back -- --Use --smartcard=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsSmartcard> -- --=item B<--redirdev> BUS[,OPTIONS] -- --Add a redirected device. -- --=over 4 -- --=item B<type> -- --The redirection type, currently supported is B<tcp> or B<spicevmc>. -- --=item B<server> -- --The TCP server connection details, of the form 'server:port'. -- --=back -- --Examples of invocation: -+The following options are accepted when running C<virt-manager>: + =item B<--boot> BOOTOPTS - =over 4 + Optionally specify the post-install VM boot configuration. This option allows +@@ -637,7 +592,7 @@ --=item B<--redirdev usb,type=tcp,server=localhost:4000> -- --Add a USB redirected device provided by the TCP server on 'localhost' --port 4000. -- --=item B<--redirdev usb,type=spicevmc> -- --Add a USB device redirected via a dedicated Spice channel. -- --=back -- --Use --redirdev=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsRedir> -- --=item B<--memballoon> MODEL -- --Attach a virtual memory balloon device to the guest. If the memballoon device --needs to be explicitly disabled, MODEL='none' is used. -- --MODEL is the type of memballoon device provided. The value can be 'virtio', --'xen' or 'none'. --Some examples: -- --Use the recommended settings: -- ----memballoon virtio -- --Do not use memballoon device: -- ----memballoon none -- --Use --memballoon=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsMemBalloon> -- --=item B<--tpm> TYPE[,OPTIONS] -- --Configure a virtual TPM device. -- --Type must be B<passthrough>. Additional options are: -- --=over 4 -- --=item B<model> -- --The device model to present to the guest operating system. Model --must be B<tpm-tis>. -- --=back -- --An example invocation: -- --=over 4 -- --=item B<--tpm passthrough,model=tpm-tis> -- --Make the host's TPM accessible to a single guest. -- --=item B<--tpm /dev/tpm> -- --Convenience option for passing through the hosts TPM. -- --=back -- --Use --tpm=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsTpm> -- --=item B<--rng> TYPE[,OPTIONS] -- --Configure a virtual RNG device. -- --Type can be B<random> or B<egd>. -- --If the specified type is B<random> then these values must --be specified: -- --=over 4 -- --=item B<backend_device> -- --The device to use as a source of entropy. -- --=back -+=item B<-h> - --Whereas, when the type is B<egd>, these values must be provided: -+=item B<--help> - --=over 4 -+Display command line help summary - --=item B<backend_host> -+=item B<--version> - --Specify the host of the Entropy Gathering Daemon to connect to. -+Show virt-manager's version number and exit - --=item B<backend_service> -+=item B<-c> URI - --Specify the port of the Entropy Gathering Daemon to connect to. -+=item B<--connect>=URI - --=item B<backend_type> -+Specify the hypervisor connection C<URI> + =item B<removable> --Specify the type of the connection: B<tcp> or B<udp>. -+=item B<--debug> - --=item B<backend_mode> -+List debugging output to the console (normally this is only logged in -+~/.cache/virt-manager/virt-manager.log). This function implies --no-fork. - --Specify the mode of the connection. It is either 'bind' (wait for --connections on HOST:PORT) or 'connect' (send output to HOST:PORT). -+=item B<--no-fork> - --=item B<backend_connect_host> -+Don't fork C<virt-manager> off into the background: run it blocking the -+current terminal. Useful for seeing possible errors dumped to stdout/stderr. - --Specify the remote host to connect to when the specified backend_type is B<udp> --and backend_mode is B<bind>. -+=item B<--no-conn-autostart> - --=item B<backend_connect_service> -+Don't autostart any libvirt connections when launching C<virt-manager>. - --Specify the remote service to connect to when the specified backend_type is --B<udp> and backend_mode is B<bind>. -+=item B<--show-DIALOG-WINDOW> - --=back -+Display the corresponding C<DIALOG-WINDOW> when launching C<virt-manager>. This -+function implies --no-conn-autostart and the manager window will not be shown -+at startup in this case. - --An example invocation: -+The following C<DIALOG-WINDOW> options are currently available: - - =over 4 - --=item B<--rng egd,backend_host=localhost,backend_service=8000,backend_type=tcp> -- --Connect to localhost to the TCP port 8000 to get entropy data. -+=item B<--show-domain-creator> - --=item B<--rng /dev/random> -+Display the wizard for creating new virtual machines - --Use the /dev/random device to get entropy data, this form implicitly uses the --"random" model. -- --Use --rng=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsRng> -- --=back -+=item B<--show-domain-editor> NAME|ID|UUID - --=item B<--panic> OPTS -+Display the dialog for editing properties of the virtual machine with -+unique ID matching either the domain name, ID, or UUID - --Attach a panic notifier device to the guest. For the recommended settings, use: -+=item B<--show-domain-performance> NAME|ID|UUID - ----panic default -+Display the dialog for monitoring performance of the virtual machine with -+unique ID matching either the domain name, ID, or UUID +-Sets the removable flag (/sys/block/$dev/removable on Linux). Only ++Sets the removable flag (/sys/block/$dev/removable on GNU/Linux). Only + used with QEMU and bus=usb. Value can be 'on' or 'off'. --Use --panic=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsPanic> -+=item B<--show-domain-console> NAME|ID|UUID + =item B<readonly> +@@ -717,7 +672,7 @@ --=item B<--memdev> OPTS -+Display the virtual console of the virtual machine with -+unique ID matching either the domain name, ID, or UUID + =item B<serial> --Add a memory module to a guest which can be hotunplugged. To add a memdev you need --to configure hotplugmemory and NUMA for a guest. -- --Use --memdev=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsMemory>. -+=item B<--show-host-summary> +-Serial number of the emulated disk device. This is used in linux guests ++Serial number of the emulated disk device. This is used in GNU/Linux guests + to set /dev/disk/by-id symlinks. An example serial number might be: + WD-WMAP9A966149 -+Display the main window summarizing performance for all virtual machines -+on the host. +@@ -746,7 +701,7 @@ - =back + --filesystem /source/on/host,/target/point/in/guest --=head1 MISCELLANEOUS OPTIONS -- --=over 4 -- --=item B<-h> -- --=item B<--help> -- --Show the help message and exit -- --=item B<--version> -- --Show program's version number and exit -+=item B<--spice-disable-auto-usbredir> +-Which will work for recent QEMU and linux guest OS or LXC containers. For ++Which will work for recent QEMU and GNU/Linux guest OS or LXC Linux containers. For + QEMU, the target point is just a mounting hint in sysfs, so will not be + automatically mounted. --=item B<--autostart> -- --Set the autostart flag for a domain. This causes the domain to be started --on host boot up. -- --=item B<--transient> -- --Use --import or --boot and --transient if you want a transient libvirt --VM. These VMs exist only until the domain is shut down or the host --server is restarted. Libvirt forgets the XML configuration of the VM --after either of these events. Note that the VM's disks will not be --deleted. See: --L<http://wiki.libvirt.org/page/VM_lifecycle#Transient_guest_domains_vs_Persistent_guest_domains> -- --=item B<--print-xml> [STEP] -- --Print the generated XML of the guest, instead of defining it. By default this WILL do storage creation (can be disabled with --dry-run). This option implies --quiet. -- --If the VM install has multiple phases, by default this will print all generated XML. If you want to print a particular step, use --print-xml 2 (for the second phase XML). -- --=item B<--noreboot> -- --Prevent the domain from automatically rebooting after the install has --completed. -- --=item B<--wait> WAIT -- --Amount of time to wait (in minutes) for a VM to complete its install. --Without this option, virt-install will wait for the console to close (not --necessarily indicating the guest has shutdown), or in the case of ----noautoconsole, simply kick off the install and exit. Any negative --value will make virt-install wait indefinitely, a value of 0 triggers the --same results as noautoconsole. If the time limit is exceeded, virt-install --simply exits, leaving the virtual machine in its current state. -- --=item B<--dry-run> -- --Proceed through the guest creation process, but do NOT create storage devices, --change host device configuration, or actually teach libvirt about the guest. --virt-install may still fetch install media, since this is required to --properly detect the OS to install. -- --=item B<--check> -- --Enable or disable some validation checks. Some examples are warning about using a disk that's already assigned to another VM (--check path_in_use=on|off), or warning about potentially running out of space during disk allocation (--check disk_size=on|off). Most checks are performed by default. -- --=item B<-q> -- --=item B<--quiet> -- --Only print fatal error messages. -- --=item B<-d> -- --=item B<--debug> -- --Print debugging information to the terminal when running the install process. --The debugging information is also stored in --C<~/.cache/virt-manager/virt-install.log> even if this parameter is omitted. -+Auto USB redirection is supported by default. This option switches off it. +@@ -1695,45 +1650,6 @@ - =back + =head1 EXAMPLES --=head1 EXAMPLES -- -Install a Fedora 20 KVM guest with virtio accelerated disk/network, -creating a new 10GiB qcow2 file, installing from media in the hosts -CDROM drive. This will use Spice graphics by default, and launch autolaunch @@ -1774,84 +129,27 @@ - --graphics vnc \ - --cdrom /root/fedora7live.iso - --Run /usr/bin/httpd in a linux container guest (LXC). Resource usage is capped --at 512 MiB of ram and 2 host cpus: -- -- # virt-install \ -- --connect lxc:/// \ -- --name httpd_guest \ -- --memory 512 \ -- --vcpus 2 \ -- --init /usr/bin/httpd -- --Start a linux container guest(LXC) with a private root filesystem, --using /bin/sh as init. --Container's root will be under host dir /home/LXC. --The host dir "/home/test" will be mounted at --"/mnt" dir inside container: -- -- # virt-install \ -- --connect lxc:/// \ -- --name container \ -- --memory 128 \ -- --filesystem /home/LXC,/ \ -- --filesystem /home/test,/mnt \ -- --init /bin/sh -- --Install a paravirtualized Xen guest, 500 MiB of RAM, a 5 GiB of disk, and --Fedora Core 6 from a web server, in text-only mode, with old style --file --options: -- -- # virt-install \ -- --paravirt \ -- --name demo \ -- --memory 500 \ -- --disk /var/lib/xen/images/demo.img,size=6 \ -- --graphics none \ -- --location http://download.fedora.redhat.com/pub/fedora/linux/core/6/x86_64/os/ -- --Create a guest from an existing disk image 'mydisk.img' using defaults for --the rest of the options. -- -- # virt-install \ -- --name demo \ -- --memory 512 \ -- --disk /home/user/VMs/mydisk.img \ -- --import -- --Start serial QEMU ARM VM, which requires specifying a manual kernel. -- -- # virt-install \ -- --name armtest \ -- --memory 1024 \ -- --arch armv7l --machine vexpress-a9 \ -- --disk /home/user/VMs/myarmdisk.img \ -- --boot kernel=/tmp/my-arm-kernel,initrd=/tmp/my-arm-initrd,dtb=/tmp/my-arm-dtb,kernel_args="console=ttyAMA0 rw root=/dev/mmcblk0p3" \ -- --graphics none -+Standard GTK options like --g-fatal-warnings are also accepted. - - =head1 BUGS + Run /usr/bin/httpd in a linux container guest (LXC). Resource usage is capped + at 512 MiB of ram and 2 host cpus: --Please see http://virt-manager.org/page/BugReporting -+Please see L<http://virt-manager.org/bugs/> +@@ -1759,7 +1675,7 @@ + --init /bin/sh - =head1 COPYRIGHT - - Copyright (C) Red Hat, Inc, and various contributors. --This is free software. You may redistribute copies of it under the terms of --the GNU General Public License C<http://www.gnu.org/licenses/gpl.html>. There --is NO WARRANTY, to the extent permitted by law. -+This is free software. You may redistribute copies of it under the terms of the GNU General -+Public License C<http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the extent -+permitted by law. - - =head1 SEE ALSO - --C<virsh(1)>, C<virt-clone(1)>, C<virt-manager(1)>, the project website C<http://virt-manager.org> -+C<virsh(1)>, C<virt-viewer(1)>, the project website C<http://virt-manager.org> + Install a paravirtualized Xen guest, 500 MiB of RAM, a 5 GiB of disk, and +-Fedora Core 6 from a web server, in text-only mode, with old style --file ++Parabola from a web server, in text-only mode, with old style --file + options: + + # virt-install \ +@@ -1768,7 +1684,7 @@ + --memory 500 \ + --disk /var/lib/xen/images/demo.img,size=6 \ + --graphics none \ +- --location http://download.fedora.redhat.com/pub/fedora/linux/core/6/x86_64/os/ ++ --location https://repo.parabola.nu/iso/latest/ - =cut -+ + Create a guest from an existing disk image 'mydisk.img' using defaults for + the rest of the options. --- virt-manager-1.4.2.orig/man/virt-xml.pod 2017-07-17 08:06:02.000000000 -0500 +++ virt-manager-1.4.2/man/virt-xml.pod 2017-08-14 22:36:32.652992525 -0500 @@ -290,53 +290,10 @@ @@ -2333,48 +631,48 @@ # This is only for back compatibility with pre-libosinfo support. # This should never change. _aliases = { -- "altlinux" : "altlinux1.0", -- "debianetch" : "debian4", -- "debianlenny" : "debian5", -- "debiansqueeze" : "debian6", -- "debianwheezy" : "debian7", -- "freebsd10" : "freebsd10.0", -- "freebsd6" : "freebsd6.0", -- "freebsd7" : "freebsd7.0", -- "freebsd8" : "freebsd8.0", -- "freebsd9" : "freebsd9.0", -- "mandriva2009" : "mandriva2009.0", -- "mandriva2010" : "mandriva2010.0", -- "mbs1" : "mbs1.0", -- "msdos" : "msdos6.22", -- "openbsd4" : "openbsd4.2", -- "opensolaris" : "opensolaris2009.06", -- "opensuse11" : "opensuse11.4", -- "opensuse12" : "opensuse12.3", -- "rhel4" : "rhel4.0", -- "rhel5" : "rhel5.0", -- "rhel6" : "rhel6.0", -- "rhel7" : "rhel7.0", -- "ubuntuhardy" : "ubuntu8.04", -- "ubuntuintrepid" : "ubuntu8.10", -- "ubuntujaunty" : "ubuntu9.04", -- "ubuntukarmic" : "ubuntu9.10", -- "ubuntulucid" : "ubuntu10.04", -- "ubuntumaverick" : "ubuntu10.10", -- "ubuntunatty" : "ubuntu11.04", -- "ubuntuoneiric" : "ubuntu11.10", -- "ubuntuprecise" : "ubuntu12.04", -- "ubuntuquantal" : "ubuntu12.10", -- "ubunturaring" : "ubuntu13.04", -- "ubuntusaucy" : "ubuntu13.10", +- "altlinux": "altlinux1.0", +- "debianetch": "debian4", +- "debianlenny": "debian5", +- "debiansqueeze": "debian6", +- "debianwheezy": "debian7", +- "freebsd10": "freebsd10.0", +- "freebsd6": "freebsd6.0", +- "freebsd7": "freebsd7.0", +- "freebsd8": "freebsd8.0", +- "freebsd9": "freebsd9.0", +- "mandriva2009": "mandriva2009.0", +- "mandriva2010": "mandriva2010.0", +- "mbs1": "mbs1.0", +- "msdos": "msdos6.22", +- "openbsd4": "openbsd4.2", +- "opensolaris": "opensolaris2009.06", +- "opensuse11": "opensuse11.4", +- "opensuse12": "opensuse12.3", +- "rhel4": "rhel4.0", +- "rhel5": "rhel5.0", +- "rhel6": "rhel6.0", +- "rhel7": "rhel7.0", +- "ubuntuhardy": "ubuntu8.04", +- "ubuntuintrepid": "ubuntu8.10", +- "ubuntujaunty": "ubuntu9.04", +- "ubuntukarmic": "ubuntu9.10", +- "ubuntulucid": "ubuntu10.04", +- "ubuntumaverick": "ubuntu10.10", +- "ubuntunatty": "ubuntu11.04", +- "ubuntuoneiric": "ubuntu11.10", +- "ubuntuprecise": "ubuntu12.04", +- "ubuntuquantal": "ubuntu12.10", +- "ubunturaring": "ubuntu13.04", +- "ubuntusaucy": "ubuntu13.10", - "virtio26": "fedora10", -- "vista" : "winvista", -- "winxp64" : "winxp", +- "vista": "winvista", +- "winxp64": "winxp", - # Old --os-type values -- "linux" : "generic", -- "windows" : "winxp", -- "solaris" : "solaris10", +- "linux": "generic", +- "windows": "winxp", +- "solaris": "solaris10", - "unix": "freebsd9.0", "other": "generic", } @@ -2442,9 +740,9 @@ - return None - urldistro = self.distro - remap = { -- "opensuse" : "suse", -- "sles" : "suse", -- "mes" : "mandriva" +- "opensuse": "suse", +- "sles": "suse", +- "mes": "mandriva" - } - - if remap.get(urldistro): @@ -2522,7 +820,7 @@ def get_recommended_resources(self, guest): --- virt-manager-1.4.2.orig/virtinst/urlfetcher.py 2017-08-02 12:57:43.000000000 -0500 +++ virt-manager-1.4.2/virtinst/urlfetcher.py 2017-08-15 01:50:32.319461427 -0500 -@@ -382,96 +382,6 @@ +@@ -384,96 +384,6 @@ return treeinfo @@ -2619,7 +917,7 @@ def getDistroStore(guest, fetcher): stores = [] logging.debug("Finding distro store for location=%s", fetcher.location) -@@ -762,529 +672,6 @@ +@@ -764,589 +674,6 @@ return self.fetcher.acquireFile(self._valid_iso_path) @@ -2951,10 +1249,9 @@ - def __init__(self, *args, **kwargs): - Distro.__init__(self, *args, **kwargs) - +- self._url_prefix = "" - self._treeArch = self._find_treearch() -- self._url_prefix = 'current/images' - self._installer_dirname = self.name.lower() + "-installer" -- self._set_media_paths() - - def _find_treearch(self): - for pattern in ["^.*/installer-(\w+)/?$", @@ -2990,32 +1287,92 @@ - kernel_basename = "linux" - if self._treeArch in ["ppc64el"]: - kernel_basename = "vmlinux" +- +- if self._treeArch == "s390x": +- hvmroot = "%s/generic/" % self._url_prefix +- kernel_basename = "kernel.%s" % self.name.lower() +- initrd_basename = "initrd.%s" % self.name.lower() +- - self._hvm_kernel_paths = [ - (hvmroot + kernel_basename, hvmroot + initrd_basename)] - - xenroot = "%s/netboot/xen/" % self._url_prefix - self._xen_kernel_paths = [(xenroot + "vmlinuz", xenroot + "initrd.gz")] - -- def isValidStore(self): -- if self.fetcher.hasFile("%s/MANIFEST" % self._url_prefix): -- # For regular trees -- pass -- elif self.fetcher.hasFile("daily/MANIFEST"): -- # For daily trees -- self._url_prefix = "daily" -- self._set_media_paths() +- def _check_manifest(self, filename): +- if not self.fetcher.hasFile(filename): +- return False +- +- if self.arch == "s390x": +- regex = ".*generic/kernel\.%s.*" % self.name.lower() - else: +- regex = ".*%s.*" % self._installer_dirname +- +- if not self._fetchAndMatchRegex(filename, regex): +- logging.debug("Regex didn't match, not a %s distro", self.name) +- return False +- +- return True +- +- def _check_info(self, filename): +- if not self.fetcher.hasFile(filename): - return False - -- filename = "%s/MANIFEST" % self._url_prefix -- regex = ".*%s.*" % self._installer_dirname +- regex = "%s.*" % self.name +- - if not self._fetchAndMatchRegex(filename, regex): - logging.debug("Regex didn't match, not a %s distro", self.name) - return False - +- return True +- +- def _is_regular_tree(self): +- # For regular trees +- if not self._check_manifest("current/images/MANIFEST"): +- return False +- +- self._url_prefix = "current/images" +- self._set_media_paths() +- self.os_variant = self._detect_debian_osdict_from_url() +- +- return True +- +- def _is_daily_tree(self): +- # For daily trees +- if not self._check_manifest("daily/MANIFEST"): +- return False +- +- self._url_prefix = "daily" +- self._set_media_paths() - self.os_variant = self._detect_debian_osdict_from_url() +- - return True - +- def _is_install_cd(self): +- # For install CDs +- if not self._check_info(".disk/info"): +- return False +- +- if self.arch == "x86_64": +- kernel_initrd_pair = ("install.amd/vmlinuz", "install.amd/initrd.gz") +- elif self.arch == "i686": +- kernel_initrd_pair = ("install.386/vmlinuz", "install.386/initrd.gz") +- elif self.arch == "s390x": +- kernel_initrd_pair = ("boot/linux_vm", "boot/root.bin") +- else: +- kernel_initrd_pair = ("install/vmlinuz", "install/initrd.gz") +- self._hvm_kernel_paths += [kernel_initrd_pair] +- self._xen_kernel_paths += [kernel_initrd_pair] +- +- return True +- +- def isValidStore(self): +- return any(check() for check in [ +- self._is_regular_tree, +- self._is_daily_tree, +- self._is_install_cd, +- ]) +- - - ################################ - # osdict autodetection helpers # @@ -3053,33 +1410,34 @@ - name = "Ubuntu" - urldistro = "ubuntu" - -- def isValidStore(self): -- if self.fetcher.hasFile("%s/MANIFEST" % self._url_prefix): -- # For regular trees -- filename = "%s/MANIFEST" % self._url_prefix -- regex = ".*%s.*" % self._installer_dirname -- elif self.fetcher.hasFile("install/netboot/version.info"): -- # For trees based on ISO's -- self._url_prefix = "install" -- self._set_media_paths() -- filename = "%s/netboot/version.info" % self._url_prefix -- regex = "%s*" % self.name -- elif self.fetcher.hasFile(".disk/info") and self.arch == "s390x": -- self._hvm_kernel_paths += [("boot/kernel.ubuntu", "boot/initrd.ubuntu")] -- self._xen_kernel_paths += [("boot/kernel.ubuntu", "boot/initrd.ubuntu")] -- filename = ".disk/info" -- regex = "%s*" % self.name -- else: +- def _is_tree_iso(self): +- # For trees based on ISO's +- if not self._check_info("install/netboot/version.info"): - return False - -- if not self._fetchAndMatchRegex(filename, regex): -- logging.debug("Regex didn't match, not a %s distro", self.name) +- self._url_prefix = "install" +- self._set_media_paths() +- self.os_variant = self._detect_debian_osdict_from_url() +- +- return True +- +- def _is_install_cd(self): +- # For install CDs +- if not self._check_info(".disk/info"): - return False - -- self.os_variant = self._detect_debian_osdict_from_url() +- if not self.arch == "s390x": +- kernel_initrd_pair = ("linux", "initrd.gz") +- else: +- kernel_initrd_pair = ("boot/kernel.ubuntu", "boot/initrd.ubuntu") +- +- self._hvm_kernel_paths += [kernel_initrd_pair] +- self._xen_kernel_paths += [kernel_initrd_pair] +- - return True - - +- -class MandrivaDistro(Distro): - # ftp://ftp.uwsg.indiana.edu/linux/mandrake/official/2007.1/x86_64/ - name = "Mandriva/Mageia" diff --git a/libre/your-freedom/PKGBUILD b/libre/your-freedom/PKGBUILD index ee1c2791e..700fb8834 100644 --- a/libre/your-freedom/PKGBUILD +++ b/libre/your-freedom/PKGBUILD @@ -4,8 +4,8 @@ pkgname=your-freedom pkgdesc="This package conflicts with every nonfree package known to date to ensure your system is free." license=('GPL3') url="https://git.parabola.nu/blacklist.git" -pkgver=20170927 -_gitver=6301df6c4fef36fd655f2416a0efe7117e0a999b +pkgver=20170928 +_gitver=aaffc4523573f72fa5c623b15d3e6e36cb9de4aa pkgrel=1 arch=('any') @@ -14,7 +14,7 @@ install=${pkgname}.install makedepends=(librelib) source=(blacklist-${_gitver}.txt::https://git.parabola.nu/blacklist.git/plain/blacklist.txt?id=${_gitver}) -sha512sums=('5f9f1d7c1b1ace5e8a474b319f372acaa78684cf9881786d62a4cc07cca427c9c3cc76874c1f9678d8f48e54ebbdc4e372a64b8c496384ac17b172fe83716c69') +sha512sums=('e5111b6ef321ca0f8340a8e76a0b81731d48f00e33b6b466aab285921aef0fc6bc3a440602d15c1c6cf86c6da0e0399a94d2c934982cabd57d784c1a22994645') package() { cd "$srcdir" diff --git a/pcr/openrc-accessible/PKGBUILD b/pcr/openrc-accessible/PKGBUILD index bd73396f7..6df3cb93f 100644 --- a/pcr/openrc-accessible/PKGBUILD +++ b/pcr/openrc-accessible/PKGBUILD @@ -11,7 +11,7 @@ $_prefix && _sed_args+=(-e 's|#!/sbin/openrc-run|#!/usr/bin/openrc-run|g') pkgbase=openrc-accessible pkgname=('brltty-openrc' 'espeakup-openrc') -pkgver=20170926 +pkgver=20170927 pkgrel=1 pkgdesc="OpenRC init scripts" arch=('any') diff --git a/pcr/openrc-base/PKGBUILD b/pcr/openrc-base/PKGBUILD index 20b6d16f6..c0cc2a781 100644 --- a/pcr/openrc-base/PKGBUILD +++ b/pcr/openrc-base/PKGBUILD @@ -23,11 +23,11 @@ pkgname=('cronie-openrc' 'quota-tools-openrc' 'rpcbind-openrc' 'syslog-ng-openrc') -pkgver=20170926 -pkgrel=1 +pkgver=20170927 +pkgrel=2 pkgdesc="OpenRC init scripts" arch=('any') -url="https://github.com/manjaro/packages-openrc" +url="https://github.com/artix-linux" license=('GPL2') groups=('base-openrc' 'openrc-base') conflicts=('systemd-sysvcompat') diff --git a/pcr/openrc-desktop/PKGBUILD b/pcr/openrc-desktop/PKGBUILD index ef70b4cea..c737f3046 100644 --- a/pcr/openrc-desktop/PKGBUILD +++ b/pcr/openrc-desktop/PKGBUILD @@ -19,11 +19,11 @@ pkgname=('acpid-openrc' 'networkmanager-openrc' 'wpa_supplicant-openrc') -pkgver=20170926 +pkgver=20170927 pkgrel=1 pkgdesc="OpenRC init scripts" arch=('any') -url="https://github.com/manjaro/packages-openrc" +url="https://github.com/artix-linux" license=('GPL2') groups=('openrc-desktop') conflicts=('systemd-sysvcompat') diff --git a/pcr/openrc-misc/PKGBUILD b/pcr/openrc-misc/PKGBUILD index 7d68610b1..73c51e0ab 100644 --- a/pcr/openrc-misc/PKGBUILD +++ b/pcr/openrc-misc/PKGBUILD @@ -1,72 +1,87 @@ -# Maintainer (Manjaro): artoo <artoo@manjaro.org> +# Maintainer (Artix): artoo <artoo@cromnix.org> # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> _url="https://raw.githubusercontent.com/gentoo/gentoo/master" +_sed_args=(-e 's|/var/run|/run|g' -e 's|/usr/sbin|/usr/bin|g') +prefix=true + +$_prefix && _sed_args+=(-e 's|#!/sbin/openrc-run|#!/usr/bin/openrc-run|g') + pkgbase=openrc-misc -pkgname=('cpupower-openrc' - 'connman-openrc' - 'fcron-openrc' - 'fuse-openrc' - 'metalog-openrc' - 'rsyslog-openrc' - 'sane-openrc' - 'syslog-ng-openrc' - 'lirc-utils-openrc' - 'lm_sensors-openrc' - 'ntp-openrc' - 'cups-openrc' - 'haveged-openrc' - 'salt-openrc' - 'mpd-openrc' - 'hdparm-openrc' - 'bitlbee-openrc' - 'thermald-openrc' - 'xe-guest-utilities-openrc' - 'clamav-openrc' - 'at-openrc' - 'libvirt-openrc' - 'laptop-mode-tools-openrc') -pkgver=20170309 -pkgrel=1.parabola4 +pkgname=('at-openrc' + 'bitlbee-openrc' + 'clamav-openrc' + 'connman-openrc' + 'cpupower-openrc' + 'cups-openrc' + 'fcron-openrc' + 'fuse-openrc' + 'haveged-openrc' + 'hdparm-openrc' + 'laptop-mode-tools-openrc' + 'libvirt-openrc' + 'lirc-utils-openrc' + 'lm_sensors-openrc' + 'metalog-openrc' + 'mpd-openrc' + 'ntp-openrc' + 'rsyslog-openrc' + 'salt-openrc' + 'sane-openrc' + 'thermald-openrc') +pkgver=20170927 +pkgrel=1 pkgdesc="OpenRC init scripts" arch=('any') -url="https://github.com/manjaro/packages-openrc" +url="https://github.com/artix-linux" license=('GPL2') groups=('openrc-misc') conflicts=('systemd-sysvcompat') -source=("fcron.initd::${_url}/sys-process/fcron/files/fcron.init.3" - "rsyslog.confd::${_url}/app-admin/rsyslog/files/8-stable/rsyslog.confd-r1" - "rsyslog.initd::${_url}/app-admin/rsyslog/files/8-stable/rsyslog.initd-r1" - "saned.confd::${_url}/media-gfx/sane-backends/files/saned.confd" - "saned.initd::${_url}/media-gfx/sane-backends/files/saned.initd" +source=("atd.confd::${_url}/sys-process/at/files/atd.confd" + "atd.initd::${_url}/sys-process/at/files/atd.rc8" + "bitlbee.confd::${_url}/net-im/bitlbee/files/bitlbee.confd-r1" + "bitlbee.initd::${_url}/net-im/bitlbee/files/bitlbee.initd-r1" + "clamd.confd::${_url}/app-antivirus/clamav/files/clamd.conf-r1" + "clamd.initd::${_url}/app-antivirus/clamav/files/clamd.initd-r6" + "connman.confd::${_url}/net-misc/connman/files/connman.confd" + "connman.initd::${_url}/net-misc/connman/files/connman.initd2" + "cpupower.confd::${_url}/sys-power/cpupower/files/conf.d-r2" + "cpupower.initd::${_url}/sys-power/cpupower/files/init.d-r4" + "cupsd.initd::${_url}/net-print/cups/files/cupsd.init.d-r2" + "fcron.initd::${_url}/sys-process/fcron/files/fcron.init.4" "fuse.initd::${_url}/sys-fs/fuse/files/fuse.init" - "metalog.confd::${_url}/app-admin/metalog/files/metalog.confd" - "metalog.initd::${_url}/app-admin/metalog/files/metalog.initd" - "syslog-ng.confd::${_url}/app-admin/syslog-ng/files/3.7/syslog-ng.confd" - "syslog-ng.initd::${_url}/app-admin/syslog-ng/files/3.7/syslog-ng.rc6" + "haveged.confd::${_url}/sys-apps/haveged/files/haveged-conf.d" + "haveged.initd::${_url}/sys-apps/haveged/files/haveged-init.d.3" + "hdparm.confd::${_url}/sys-apps/hdparm/files/hdparm-conf.d.3" + "hdparm.initd::${_url}/sys-apps/hdparm/files/hdparm-init-8" + "laptop_mode.initd::${_url}/app-laptop/laptop-mode-tools/files/laptop_mode.init-1.4" + "libvirtd.confd::${_url}/app-emulation/libvirt/files/libvirtd.confd-r5" + "libvirtd.initd::${_url}/app-emulation/libvirt/files/libvirtd.init-r16" + "virtlockd.initd::${_url}/app-emulation/libvirt/files/virtlockd.init-r1" + "virtlogd.initd::${_url}/app-emulation/libvirt/files/virtlogd.init-r1" + "libvirt-guests.confd::${_url}/app-emulation/libvirt/files/libvirt-guests.confd" + "libvirt-guests.initd::${_url}/app-emulation/libvirt/files/libvirt-guests.init-r2" "lircd.confd::${_url}/app-misc/lirc/files/lircd.conf.4" "irexec.confd::${_url}/app-misc/lirc/files/irexec-confd" "lircd.initd::${_url}/app-misc/lirc/files/lircd-0.8.6-r2" "irexec.initd::${_url}/app-misc/lirc/files/irexec-initd-0.8.6-r2" "lircmd.initd::${_url}/app-misc/lirc/files/lircmd" - "cpupower.confd::${_url}/sys-power/cpupower/files/conf.d-r2" - "cpupower.initd::${_url}/sys-power/cpupower/files/init.d-r4" #"sensord.confd::${_url}/sys-apps/lm_sensors/files/sensord-conf.d" "sensord.initd::${_url}/sys-apps/lm_sensors/files/sensord-4-init.d" "fancontrol.initd::${_url}/sys-apps/lm_sensors/files/fancontrol-init.d-2" "lm_sensors.initd::${_url}/sys-apps/lm_sensors/files/lm_sensors-3-init.d" + "metalog.confd::${_url}/app-admin/metalog/files/metalog.confd" + "metalog.initd::${_url}/app-admin/metalog/files/metalog.initd" + "mpd.initd::${_url}/media-sound/mpd/files/mpd2.init" "ntpd.confd::${_url}/net-misc/ntp/files/ntpd.confd" "ntp-client.confd::${_url}/net-misc/ntp/files/ntp-client.confd" "sntp.confd::${_url}/net-misc/ntp/files/sntp.confd" "ntpd.initd::${_url}/net-misc/ntp/files/ntpd.rc-r1" "ntp-client.initd::${_url}/net-misc/ntp/files/ntp-client.rc" "sntp.initd::${_url}/net-misc/ntp/files/sntp.rc" - "cupsd.initd::${_url}/net-print/cups/files/cupsd.init.d-r2" - "connman.confd::${_url}/net-misc/connman/files/connman.confd" - "connman.initd::${_url}/net-misc/connman/files/connman.initd2" - "haveged.confd::${_url}/sys-apps/haveged/files/haveged-conf.d" - "haveged.initd::${_url}/sys-apps/haveged/files/haveged-init.d.3" + "rsyslog.confd::${_url}/app-admin/rsyslog/files/8-stable/rsyslog.confd-r1" + "rsyslog.initd::${_url}/app-admin/rsyslog/files/8-stable/rsyslog.initd-r1" "salt-master.confd::${_url}/app-admin/salt/files/master-confd-1" "salt-master.initd::${_url}/app-admin/salt/files/master-initd-4" "salt-minion.confd::${_url}/app-admin/salt/files/minion-confd-1" @@ -75,55 +90,52 @@ source=("fcron.initd::${_url}/sys-process/fcron/files/fcron.init.3" "salt-syncdic.initd::${_url}/app-admin/salt/files/syndic-initd-4" "salt-api.confd::${_url}/app-admin/salt/files/api-confd-1" "salt-api.initd::${_url}/app-admin/salt/files/api-initd-4" - "mpd.initd::${_url}/media-sound/mpd/files/mpd2.init" - "hdparm.confd::${_url}/sys-apps/hdparm/files/hdparm-conf.d.3" - "hdparm.initd::${_url}/sys-apps/hdparm/files/hdparm-init-8" - "bitlbee.confd::${_url}/net-im/bitlbee/files/bitlbee.confd-r1" - "bitlbee.initd::${_url}/net-im/bitlbee/files/bitlbee.initd-r1" - "xe-daemon.initd::${_url}/app-emulation/xe-guest-utilities/files/xe-daemon.initd" - "clamd.confd::${_url}/app-antivirus/clamav/files/clamd.conf-r1" - "clamd.initd::${_url}/app-antivirus/clamav/files/clamd.initd-r6" - "atd.confd::${_url}/sys-process/at/files/atd.confd" - "atd.initd::${_url}/sys-process/at/files/atd.rc8" - "libvirtd.confd::${_url}/app-emulation/libvirt/files/libvirtd.confd-r5" - "libvirtd.initd::${_url}/app-emulation/libvirt/files/libvirtd.init-r16" - "virtlockd.initd::${_url}/app-emulation/libvirt/files/virtlockd.init-r1" - "virtlogd.initd::${_url}/app-emulation/libvirt/files/virtlogd.init-r1" - "libvirt-guests.confd::${_url}/app-emulation/libvirt/files/libvirt-guests.confd" - "libvirt-guests.initd::${_url}/app-emulation/libvirt/files/libvirt-guests.init-r2" - "laptop_mode.initd::${_url}/app-laptop/laptop-mode-tools/files/laptop_mode.init-1.4" + "saned.confd::${_url}/media-gfx/sane-backends/files/saned.confd" + "saned.initd::${_url}/media-gfx/sane-backends/files/saned.initd" "thermald.initd") -sha256sums=('af951e342ea3e96fb5294c54bdf226b0e733df8b96e8af9e4c1a836c0361ceca' - '0be3575df8010523de6b37e98c417192e8ec481292ca9fb47c8d2211795e03a6' - '93044cc5fc344cd90d17cbb5cebee3c60ebf674e53c8b9efc6e758d53912d343' - '197e44ba1f438a18f5f7d9f5858feb19c1ece4286d82a5e63caf9be5b964aa76' - '80e12e65ec5abf2e57da9fdf58e681845029ccab65206cd56a4bc06e2abefb0a' +sha256sums=('ece01506efa6d73d7cbe9bc1da6eb1afc4d63451ab1fccf5051178b6e937d68e' + '115f3be9cfd306251909ca7fc2dbc55ca71f6f38a3ebb62d9a428a9eddcd8ffb' + 'cab8b8cb8709f27a5fa9f1cfce4b58db24f5cd38b8e6badb91dac0809e6ca8de' + '4b8654dffd57243079223a1cc236edf5e47309515270fde2d18123e41cd3c29f' + '28ebd47810b0568fc7692218867d6804a1df70290681462f5555e230ca817732' + '7b502b8ca6672ee85d67e6c2e210118b05cee8170ebab4308df192f0f8064de3' + '767a160c1b3392f0a12d3908a937548a2f604a9a121e744c309ee6f478420b02' + '4c018df1b53b142a2e26c456b0bf6cc7039fb3851bc5f567e59654117930a78b' + '9ab6f022d2b2948660decf5e383984e6ddb9e9e5e6e2761c3031378ddd87e947' + 'c8c092fa80da7c312430389ae06ff7874d651d8e7b6c28236ee5c8d8d3557d9d' + '54b86ec2d7086004cde4e8b69aa49b7334718cad42a4426382f56269bb0f5a78' + 'e193623b14a421fba86f0f5f10d6ac95de02d27239b117050a1eeccabe08aa06' '66ce65e2459fef26bb1711d706a23643a9af7a80e03ee6be836a377310b00682' - 'dd9d30a6c22dca6d072a9c63e1494d3d0a26709a5f045ce5985642933fe24efc' - '78e372a0c04c36e590a66d0750083fcb6302159eaae06a81c19a379e6115087e' - 'b29325498ee3b1f3d63672efcd1e93f0745eecdb9f4bb05fed82a2f085399484' - '5c4ad3406fc885555883de0537614034de181d783bcb1e864bff6299ac6c1356' + 'e796a353534e8ec36b84a29ab4cbd738ebd18098efca5ed8d92b267a99dc58f6' + '5ee06c49764ecc4aaa9a88a222ef7838dbc065d049279693a37bebd0431855de' + '37c95ff723fa578e9039613d09dbf790d99113a318c065422986c744519214e9' + '05b264cadc84984f773cd555af322b41fdb13da7cb2ca60d8a7d590ddf4d5e5f' + '6bb07bd94b50ad559c3cd23b57dbb928ff0449d356d973ba281baa232435d9c6' + '4f7fba7e64533868119c0f3355aa22932e163b208397323dc2cd96daadcc4079' + '1f875e12cc6ecb1b434bfea774893b84f6602072da0218b654d2ecf79cf2d36d' + '23ddea66fb2d85c17c382daa07abfabe7fa57d62406d2ca5df0c755f5dcc3834' + '1647c11779fd874bdc115234bae0f0f65278084541473d2825aa9864ad49f939' + 'd5f85bb8c1d2010347f23badc422e98046b97a0066254739b5829fce07837d63' + 'f78ced5ebe644522c6ce102b3f6bcf932686243a50629559f988548c570cad3a' 'd36ff77fa193a065d25e373723e03f1a9471205151b82c73a6574cce4f095962' 'c404ad3b624004cab25bd3a89593cdeb0abbc25771d6e52caf2f37cb4f7b2b79' 'ec592af12a7b7bbe1be1b9a4ff72fcf1fda6cf0e4511120e5a85e2a4ef08b213' '1eb5123f9876dff17367e78940a7442de6b5cae55e0eb4969f5985cc78261a03' '47a9b3500c51c147ac64a8c0cc0dda3945522269e26c513399d89efbbb3c7098' - '9ab6f022d2b2948660decf5e383984e6ddb9e9e5e6e2761c3031378ddd87e947' - 'c8c092fa80da7c312430389ae06ff7874d651d8e7b6c28236ee5c8d8d3557d9d' 'c95bdbce67efb57d60cf0b7248091e09d7f52c19eb13874944babe6bb84b12f1' '3ce872b305dafa2957eb082239dedb57a880b1395bf9377e916143a04086cbcc' '24026e19e7862b02fe5e6d0bb9998dd5420c30c64045bdfc94d7578b1cb822ea' + 'dd9d30a6c22dca6d072a9c63e1494d3d0a26709a5f045ce5985642933fe24efc' + '78e372a0c04c36e590a66d0750083fcb6302159eaae06a81c19a379e6115087e' + '6ca354f8b8c4b0e8595f7dbda1058fd471a6b538469ea10e7caf8e7f263f621a' '40803821f498267f6567436eedc18201b5ae4b5390d6872fb15a94200c2ac06f' 'c7dc517cdb5ee10e2a07ccea15ec47ba0b7aff8ac1469204c8d7faf71bcae2c5' '97282007801cb9c0e3b431e2930dec3bb8ce8869f63f7e02d903846e96734684' 'cdccb5f0009d1498be90a3f423158d7a3c603a1398f8993ae6fb828224a7cdaa' '49f6634a258d4a91dc12c3b6bf9014b05a39cfe121ad52f826721ab791a28aa3' 'd1ba585272e6158a942d536d508a2979a1ca17316d4b97766d78bad4e9a6a7b8' - '54b86ec2d7086004cde4e8b69aa49b7334718cad42a4426382f56269bb0f5a78' - '767a160c1b3392f0a12d3908a937548a2f604a9a121e744c309ee6f478420b02' - '4c018df1b53b142a2e26c456b0bf6cc7039fb3851bc5f567e59654117930a78b' - 'e796a353534e8ec36b84a29ab4cbd738ebd18098efca5ed8d92b267a99dc58f6' - '5ee06c49764ecc4aaa9a88a222ef7838dbc065d049279693a37bebd0431855de' + '0be3575df8010523de6b37e98c417192e8ec481292ca9fb47c8d2211795e03a6' + '93044cc5fc344cd90d17cbb5cebee3c60ebf674e53c8b9efc6e758d53912d343' '9f3f47a7af4d349a7c525455616139b5019d3b7d0290398ba8c50ab91a62d089' '7064f21c734313e9d9d32b77eaecf3eeb6de714eff6dcafeb79c25303e675bf9' '286148f5391d42c04a62a13cc125fa2130b5821e50da913c5a20d3a913e5f2d1' @@ -132,285 +144,247 @@ sha256sums=('af951e342ea3e96fb5294c54bdf226b0e733df8b96e8af9e4c1a836c0361ceca' '86c1af171c7b13018f089fab6d045feabd72455f9453720ef36ae2011b9cb976' '9f3f47a7af4d349a7c525455616139b5019d3b7d0290398ba8c50ab91a62d089' 'e673f359ff7fbb012d9eb5d6c3db841668e3692b15b07faeb6352feb5cfbb2b1' - '6ca354f8b8c4b0e8595f7dbda1058fd471a6b538469ea10e7caf8e7f263f621a' - '37c95ff723fa578e9039613d09dbf790d99113a318c065422986c744519214e9' - '05b264cadc84984f773cd555af322b41fdb13da7cb2ca60d8a7d590ddf4d5e5f' - 'cab8b8cb8709f27a5fa9f1cfce4b58db24f5cd38b8e6badb91dac0809e6ca8de' - '4b8654dffd57243079223a1cc236edf5e47309515270fde2d18123e41cd3c29f' - 'c65e8f0354364f32e87bee2922979cb09ea680ad6baae48a910a10d39b850987' - '28ebd47810b0568fc7692218867d6804a1df70290681462f5555e230ca817732' - '7b502b8ca6672ee85d67e6c2e210118b05cee8170ebab4308df192f0f8064de3' - 'ece01506efa6d73d7cbe9bc1da6eb1afc4d63451ab1fccf5051178b6e937d68e' - '115f3be9cfd306251909ca7fc2dbc55ca71f6f38a3ebb62d9a428a9eddcd8ffb' - '4f7fba7e64533868119c0f3355aa22932e163b208397323dc2cd96daadcc4079' - '1f875e12cc6ecb1b434bfea774893b84f6602072da0218b654d2ecf79cf2d36d' - '23ddea66fb2d85c17c382daa07abfabe7fa57d62406d2ca5df0c755f5dcc3834' - '1647c11779fd874bdc115234bae0f0f65278084541473d2825aa9864ad49f939' - 'd5f85bb8c1d2010347f23badc422e98046b97a0066254739b5829fce07837d63' - 'f78ced5ebe644522c6ce102b3f6bcf932686243a50629559f988548c570cad3a' - '6bb07bd94b50ad559c3cd23b57dbb928ff0449d356d973ba281baa232435d9c6' - 'a3bf62301de5d8e25fb4759ff5cef95fd3efa68eb84cf3ba297f7c0d4d8c3b74') + '197e44ba1f438a18f5f7d9f5858feb19c1ece4286d82a5e63caf9be5b964aa76' + '80e12e65ec5abf2e57da9fdf58e681845029ccab65206cd56a4bc06e2abefb0a' + '4bbb4e610d2d6bb22d83aa2980dca052a23b90fa6985c8245601b716dec986f4') pkgver() { - date +%Y%m%d + date +%Y%m%d } _inst_initd(){ - install -Dm755 ${srcdir}/$1.initd ${pkgdir}/etc/init.d/$1 + install -Dm755 ${srcdir}/$1.initd ${pkgdir}/etc/init.d/$1 - sed -e 's|/var/run|/run|g' \ - -e 's|/usr/sbin|/usr/bin|g' \ - -i ${pkgdir}/etc/init.d/$1 + sed ${_sed_args[@]} -i ${pkgdir}/etc/init.d/$1 } _inst_confd(){ - install -Dm755 ${srcdir}/$1.confd ${pkgdir}/etc/conf.d/$1 + install -Dm755 ${srcdir}/$1.confd ${pkgdir}/etc/conf.d/$1 } -package_bitlbee-openrc() { - pkgdesc="OpenRC bitlbee init script" - depends=('openrc' 'bitlbee') - backup=('etc/conf.d/bitlbee') +package_at-openrc() { + pkgdesc="OpenRC at init script" + depends=('openrc' 'at') + backup=('etc/conf.d/atd') - _inst_confd 'bitlbee' - _inst_initd 'bitlbee' + _inst_confd 'atd' + _inst_initd 'atd' - sed -e 's|need logger net|need net\n use logger|' \ - -i "${pkgdir}/etc/init.d/bitlbee" + sed -e 's|/var/run|/run|g' \ + -i "${pkgdir}/etc/conf.d/atd" } -package_cpupower-openrc() { - pkgdesc="OpenRC cpupower init script" - depends=('openrc' 'cpupower') - backup=('etc/conf.d/cpupower') +package_bitlbee-openrc() { + pkgdesc="OpenRC bitlbee init script" + depends=('openrc' 'bitlbee') + backup=('etc/conf.d/bitlbee') + + _inst_confd 'bitlbee' + _inst_initd 'bitlbee' - _inst_confd 'cpupower' - _inst_initd 'cpupower' + sed -e 's|need logger net|need net\n use logger|' \ + -i "${pkgdir}/etc/init.d/bitlbee" } -package_connman-openrc() { - pkgdesc="OpenRC connman init script" - depends=('openrc' 'connman') - backup=('etc/conf.d/connman') +package_clamav-openrc() { + pkgdesc="OpenRC clamav init script" + depends=('openrc' 'clamav') + backup=('etc/conf.d/clamd') - _inst_confd 'connman' - _inst_initd 'connman' + _inst_confd 'clamd' + _inst_initd 'clamd' } -package_cups-openrc() { - pkgdesc="OpenRC cups init script" - depends=('cups' 'dbus-openrc') - optdepends=('avahi-openrc: avahi initscript') - - _inst_initd 'cupsd' +package_connman-openrc() { + pkgdesc="OpenRC connman init script" + depends=('openrc' 'connman') + backup=('etc/conf.d/connman') - sed -e 's|lp:lpadmin|daemon:sys|' \ - -e 's|@neededservices@|need dbus avahi-daemon|' \ - -i "${pkgdir}/etc/init.d/cupsd" + _inst_confd 'connman' + _inst_initd 'connman' } -package_fcron-openrc() { - pkgdesc="OpenRC fcron init script" - depends=('openrc' 'fcron') - groups=('openrc-misc') - provides=('openrc-cron') - conflicts=('cronie' - 'cronie-openrc' - 'systemd-sysvcompat') - - _inst_initd 'fcron' +package_cpupower-openrc() { + pkgdesc="OpenRC cpupower init script" + depends=('openrc' 'cpupower') + backup=('etc/conf.d/cpupower') - sed -e 's|/usr/libexec|/usr/bin|g' \ - -i "${pkgdir}/etc/init.d/fcron" + _inst_confd 'cpupower' + _inst_initd 'cpupower' } -package_ntp-openrc() { - pkgdesc="OpenRC ntp init script" - depends=('openrc' 'ntp') - optdepends=('bind-openrc: bind initscript') - provides=('openrc-timed') - conflicts=('openntpd' - 'openntpd-openrc' - 'systemd-sysvcompat') - backup=('etc/conf.d/ntpd' - 'etc/conf.d/ntp-client' - 'etc/init.d/sntp') - - for f in ntpd ntp-client sntp;do - _inst_confd $f - _inst_initd $f - done -} +package_cups-openrc() { + pkgdesc="OpenRC cups init script" + depends=('cups' 'dbus-openrc') + optdepends=('avahi-openrc: avahi initscript') -package_rsyslog-openrc() { - pkgdesc="OpenRC rsyslog init script" - depends=('openrc' 'rsyslog') - backup=('etc/conf.d/rsyslog') + _inst_initd 'cupsd' - _inst_confd 'rsyslog' - _inst_initd 'rsyslog' + sed -e 's|lp:lpadmin|daemon:sys|' \ + -e 's|@neededservices@|need dbus avahi-daemon|' \ + -i "${pkgdir}/etc/init.d/cupsd" } -package_sane-openrc() { - pkgdesc="OpenRC sane init script" - depends=('openrc' 'sane') - backup=('etc/conf.d/saned') +package_fcron-openrc() { + pkgdesc="OpenRC fcron init script" + depends=('openrc' 'fcron') + groups=('openrc-misc') + provides=('openrc-cron') + conflicts=('cronie' 'cronie-openrc' 'systemd-sysvcompat') - _inst_confd 'saned' - _inst_initd 'saned' + _inst_initd 'fcron' - sed -e 's|/run/saned/saned.pid|/run/saned.pid|' \ - -i ${pkgdir}/etc/init.d/saned + sed -e 's|/usr/libexec|/usr/bin|g' \ + -i "${pkgdir}/etc/init.d/fcron" } package_fuse-openrc(){ - pkgdesc="OpenRC fuse init script" - depends=('openrc' 'fuse') + pkgdesc="OpenRC fuse init script" + depends=('openrc' 'fuse') - _inst_initd 'fuse' + _inst_initd 'fuse' } -package_metalog-openrc() { - pkgdesc="OpenRC metalog init script" - depends=('openrc' 'metalog') - backup=('etc/conf.d/metalog') +package_haveged-openrc() { + pkgdesc="OpenRC haveged init script" + depends=('openrc' 'haveged') + backup=('etc/conf.d/haveged') - _inst_confd 'metalog' - _inst_initd 'metalog' + _inst_confd 'haveged' + _inst_initd 'haveged' } -package_syslog-ng-openrc() { - pkgdesc="OpenRC syslog-ng init script" - depends=('openrc' 'syslog-ng') - backup=('etc/conf.d/syslog-ng') +package_hdparm-openrc() { + pkgdesc="OpenRC hdparm init script" + depends=('openrc' 'hdparm') + backup=('etc/conf.d/hdparm') - _inst_confd 'syslog-ng' - _inst_initd 'syslog-ng' + _inst_confd 'hdparm' + _inst_initd 'hdparm' } -package_lm_sensors-openrc() { - pkgdesc="OpenRC lm_sensors init script" - depends=('openrc' 'lm_sensors') - #backup=('etc/conf.d/sensord') +package_laptop-mode-tools-openrc() { + pkgdesc="OpenRC laptop-mode init script" + depends=('openrc' 'laptop-mode-tools') + groups=('openrc-misc' 'openrc-mobile') - _inst_initd 'sensord' - _inst_initd 'fancontrol' - _inst_initd 'lm_sensors' + _inst_initd 'laptop_mode' } -package_lirc-utils-openrc() { - pkgdesc="OpenRC lirc-utils init script" - depends=('openrc' 'lirc-utils') - backup=('etc/conf.d/lircd' - 'etc/conf.d/irexec') - - - for f in lircd irexec;do - _inst_confd $f - _inst_initd $f - done - - _inst_initd 'lircmd' +package_libvirt-openrc() { + pkgdesc="OpenRC libvirt init script" + depends=('openrc' 'libvirt') + backup=('etc/conf.d/libvirtd') + + _inst_confd 'libvirtd' + _inst_initd 'libvirtd' + _inst_initd 'virtlockd' + _inst_initd 'virtlogd' + + _inst_confd 'libvirt-guests' + _inst_initd 'libvirt-guests' + + sed -e "s/USE_FLAG_FIREWALLD/need firewalld/" \ + -e "s/USE_FLAG_AVAHI/use avahi-daemon/" \ + -e "s/USE_FLAG_ISCSI/use iscsid/" \ + -e "s/USE_FLAG_RBD/use ceph/" \ + -i "${pkgdir}/etc/init.d/libvirtd" } -package_haveged-openrc() { - pkgdesc="OpenRC haveged init script" - depends=('openrc' 'haveged') - backup=('etc/conf.d/haveged') +package_lirc-utils-openrc() { + pkgdesc="OpenRC lirc-utils init script" + depends=('openrc' 'lirc-utils') + backup=('etc/conf.d/lircd' + 'etc/conf.d/irexec') - _inst_confd 'haveged' - _inst_initd 'haveged' -} + for f in lircd irexec;do + _inst_confd $f + _inst_initd $f + done -package_salt-openrc() { - pkgdesc="OpenRC salt init scripts" - depends=('openrc' 'salt') - backup=('etc/conf.d/salt-master' - 'etc/conf.d/salt-minion' - 'etc/conf.d/salt-syncdic' - 'etc/conf.d/salt-api') - - for f in salt-master salt-minion salt-syncdic salt-api;do - _inst_confd $f - _inst_initd $f - done + _inst_initd 'lircmd' } -package_mpd-openrc(){ - pkgdesc="OpenRC fuse init script" - depends=('openrc' 'mpd') +package_lm_sensors-openrc() { + pkgdesc="OpenRC lm_sensors init script" + depends=('openrc' 'lm_sensors') + #backup=('etc/conf.d/sensord') - _inst_initd 'mpd' + _inst_initd 'sensord' + _inst_initd 'fancontrol' + _inst_initd 'lm_sensors' } -package_hdparm-openrc() { - pkgdesc="OpenRC hdparm init script" - depends=('openrc' 'hdparm') - backup=('etc/conf.d/hdparm') +package_metalog-openrc() { + pkgdesc="OpenRC metalog init script" + depends=('openrc' 'metalog') + backup=('etc/conf.d/metalog') - _inst_confd 'hdparm' - _inst_initd 'hdparm' + _inst_confd 'metalog' + _inst_initd 'metalog' } -package_thermald-openrc() { - pkgdesc="OpenRC thermald init script" - depends=('dbus-openrc' 'thermald') +package_mpd-openrc(){ + pkgdesc="OpenRC fuse init script" + depends=('openrc' 'mpd') - _inst_initd 'thermald' + _inst_initd 'mpd' } -package_xe-guest-utilities-openrc() { - pkgdesc="OpenRC xe-guest-utilities init script" - depends=('openrc' 'xe-guest-utilities') - - _inst_initd 'xe-daemon' +package_ntp-openrc() { + pkgdesc="OpenRC ntp init script" + depends=('openrc' 'ntp') + optdepends=('bind-openrc: bind initscript') + provides=('openrc-timed') + conflicts=('openntpd' 'openntpd-openrc') + backup=('etc/conf.d/ntpd' + 'etc/conf.d/ntp-client' + 'etc/init.d/sntp') + + for f in ntpd ntp-client sntp;do + _inst_confd $f + _inst_initd $f + done } -package_clamav-openrc() { - pkgdesc="OpenRC clamav init script" - depends=('openrc' 'clamav') - backup=('etc/conf.d/clamd') +package_rsyslog-openrc() { + pkgdesc="OpenRC rsyslog init script" + depends=('openrc' 'rsyslog') + backup=('etc/conf.d/rsyslog') - _inst_confd 'clamd' - _inst_initd 'clamd' + _inst_confd 'rsyslog' + _inst_initd 'rsyslog' } -package_at-openrc() { - pkgdesc="OpenRC at init script" - depends=('openrc' 'at') - backup=('etc/conf.d/atd') +package_salt-openrc() { + pkgdesc="OpenRC salt init scripts" + depends=('openrc' 'salt') + backup=('etc/conf.d/salt-master' + 'etc/conf.d/salt-minion' + 'etc/conf.d/salt-syncdic' + 'etc/conf.d/salt-api') + + for f in salt-master salt-minion salt-syncdic salt-api;do + _inst_confd $f + _inst_initd $f + done +} - _inst_confd 'atd' - _inst_initd 'atd' +package_sane-openrc() { + pkgdesc="OpenRC sane init script" + depends=('openrc' 'sane') + backup=('etc/conf.d/saned') - sed -e 's|/var/run|/run|g' \ - -i "${pkgdir}/etc/conf.d/atd" -} + _inst_confd 'saned' + _inst_initd 'saned' -package_libvirt-openrc() { - pkgdesc="OpenRC libvirt init script" - depends=('openrc' 'libvirt') - backup=('etc/conf.d/libvirtd') - - _inst_confd 'libvirtd' - _inst_initd 'libvirtd' - _inst_initd 'virtlockd' - _inst_initd 'virtlogd' - - _inst_confd 'libvirt-guests' - _inst_initd 'libvirt-guests' - - sed -e "s/USE_FLAG_FIREWALLD/need firewalld/" \ - -e "s/USE_FLAG_AVAHI/use avahi-daemon/" \ - -e "s/USE_FLAG_ISCSI/use iscsid/" \ - -e "s/USE_FLAG_RBD/use ceph/" \ - -i "${pkgdir}/etc/init.d/libvirtd" + sed -e 's|/run/saned/saned.pid|/run/saned.pid|' \ + -i ${pkgdir}/etc/init.d/saned } -package_laptop-mode-tools-openrc() { - pkgdesc="OpenRC laptop-mode init script" - depends=('openrc' 'laptop-mode-tools') - groups=('openrc-misc' 'openrc-mobile') +package_thermald-openrc() { + pkgdesc="OpenRC thermald init script" + depends=('dbus-openrc' 'thermald') - _inst_initd 'laptop_mode' + _inst_initd 'thermald' } diff --git a/pcr/openrc-misc/thermald.initd b/pcr/openrc-misc/thermald.initd index 91afa4431..9c629974b 100644 --- a/pcr/openrc-misc/thermald.initd +++ b/pcr/openrc-misc/thermald.initd @@ -1,4 +1,4 @@ -#!/sbin/openrc-run +#!/usr/bin/openrc-run # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 diff --git a/pcr/openrc-net/PKGBUILD b/pcr/openrc-net/PKGBUILD index f6fcc7922..d17f44c7e 100644 --- a/pcr/openrc-net/PKGBUILD +++ b/pcr/openrc-net/PKGBUILD @@ -1,4 +1,4 @@ -# Maintainer (Manjaro): artoo <artoo@manjaro.org> +# Maintainer (Artix): artoo <artoo@cromnix.org> # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> _apver=2.4.18-r1 @@ -7,51 +7,52 @@ _aprel=20160303 _dev_url="http://dev.gentoo.org/~polynomial-c/dist/apache" _url="https://raw.githubusercontent.com/gentoo/gentoo/master" +_sed_args=(-e 's|/var/run|/run|g' -e 's|/usr/sbin|/usr/bin|g') +prefix=true + +$_prefix && _sed_args+=(-e 's|#!/sbin/openrc-run|#!/usr/bin/openrc-run|g') + pkgbase=openrc-net -pkgname=('autofs-openrc' - 'apache-openrc' - 'bind-openrc' - 'cyrus-sasl-openrc' - 'dhcp-openrc' - 'hostapd-openrc' - 'krb5-openrc' - 'lighttpd-openrc' - 'nfs-utils-openrc' - 'openldap-openrc' - 'openslp-openrc' - 'openssh-openrc' - 'openntpd-openrc' - 'openvpn-openrc' - 'polipo-openrc' - 'postfix-openrc' - 'privoxy-openrc' - 'quota-tools-openrc' - 'rpcbind-openrc' - 'rsync-openrc' - 'samba-openrc' - 'squid-openrc' - 'transmission-openrc' - 'ufw-openrc' - 'vsftpd-openrc' - 'xinetd-openrc' - 'ypbind-mt-openrc' - 'ypserv-openrc' - 'tor-openrc' - 'wicd-openrc' - 'syncthing-openrc' - 'nginx-openrc' - 'vnstat-openrc' - 'snort-openrc' - 'unbound-openrc') -pkgver=20170309 -pkgrel=1.2 +pkgname=('apache-openrc' + 'autofs-openrc' + 'bind-openrc' + 'cyrus-sasl-openrc' + 'dhcp-openrc' + 'hostapd-openrc' + 'krb5-openrc' + 'lighttpd-openrc' + 'nginx-openrc' + 'openldap-openrc' + 'openntpd-openrc' + 'openslp-openrc' + 'openssh-openrc' + 'openvpn-openrc' + 'polipo-openrc' + 'postfix-openrc' + 'privoxy-openrc' + 'rsync-openrc' + 'samba-openrc' + 'snort-openrc' + 'squid-openrc' + 'syncthing-openrc' + 'tor-openrc' + 'transmission-openrc' + 'ufw-openrc' + 'unbound-openrc' + 'vnstat-openrc' + 'vsftpd-openrc' + 'wicd-openrc' + 'xinetd-openrc') +pkgver=20170927 +pkgrel=2 pkgdesc="OpenRC init scripts" arch=('any') -url="https://github.com/manjaro/packages-openrc" +url="https://github.com/artix-linux" license=('GPL2') groups=('openrc-net') conflicts=('systemd-sysvcompat') source=("${_dev_url}/gentoo-apache-${_apver}-${_aprel}.tar.bz2" + "autofs.initd::${_url}/net-fs/autofs/files/autofs5.initd" "named.confd::${_url}/net-dns/bind/files/named.confd-r7" "named.initd::${_url}/net-dns/bind/files/named.init-r13" "saslauthd.initd::${_url}/dev-libs/cyrus-sasl/files/saslauthd2.rc7" @@ -67,69 +68,47 @@ source=("${_dev_url}/gentoo-apache-${_apver}-${_aprel}.tar.bz2" "krb5kpropd.initd::${_url}/app-crypt/mit-krb5/files/mit-krb5kpropd.initd-r2" "lighttpd.confd::${_url}/www-servers/lighttpd/files/lighttpd.confd" "lighttpd.initd::${_url}/www-servers/lighttpd/files/lighttpd.initd" - "nfs.confd::${_url}/net-fs/nfs-utils/files/nfs.confd" - "nfs.initd::${_url}/net-fs/nfs-utils/files/nfs.initd" - "nfsclient.confd::${_url}/net-fs/nfs-utils/files/nfsclient.confd" - "nfsclient.initd::${_url}/net-fs/nfs-utils/files/nfsclient.initd" - "rpc.idmapd.initd::${_url}/net-fs/nfs-utils/files/rpc.idmapd.initd" - "rpc.pipefs.initd::${_url}/net-fs/nfs-utils/files/rpc.pipefs.initd" - "rpc.gssd.initd::${_url}/net-fs/nfs-utils/files/rpc.gssd.initd" - "rpc.svcgssd.initd::${_url}/net-fs/nfs-utils/files/rpc.svcgssd.initd" - "rpc.statd.initd::${_url}/net-fs/nfs-utils/files/rpc.statd.initd" + "nginx.confd::${_url}/www-servers/nginx/files/nginx.confd" + "nginx.initd::${_url}/www-servers/nginx/files/nginx.initd-r4" "slapd.confd::${_url}/net-nds/openldap/files/slapd-confd-2.4.28-r1" "slapd.initd::${_url}/net-nds/openldap/files/slapd-initd-2.4.40-r2" + "ntpd.confd::${_url}/net-misc/openntpd/files/openntpd.conf.d-20080406-r6" + "ntpd.initd::${_url}/net-misc/openntpd/files/openntpd.init.d-20080406-r6" "slpd.initd::${_url}/net-libs/openslp/files/slpd-init" "sshd.confd::${_url}/net-misc/openssh/files/sshd.confd" "sshd.initd::${_url}/net-misc/openssh/files/sshd.rc6.4" + "openvpn.confd::${_url}/net-vpn/openvpn/files/openvpn-2.1.conf" + "openvpn.initd::${_url}/net-vpn/openvpn/files/openvpn-2.1.init" "polipo.initd::${_url}/net-proxy/polipo/files/polipo.initd-5" "postfix.initd::${_url}/mail-mta/postfix/files/postfix.rc6.2.7" "privoxy.initd::${_url}/net-proxy/privoxy/files/privoxy.initd-3" - "quota.confd::${_url}/sys-fs/quota/files/quota.confd" - "quota.initd::${_url}/sys-fs/quota/files/quota.rc7" - "rpc.rquotad.initd::${_url}/sys-fs/quota/files/rpc.rquotad.initd" -# "rpcbind.confd::${_url}/net-nds/rpcbind/files/rpcbind.confd" - "rpcbind.initd::${_url}/net-nds/rpcbind/files/rpcbind.initd" "rsyncd.confd::${_url}/net-misc/rsync/files/rsyncd.conf.d" "rsyncd.initd::${_url}/net-misc/rsync/files/rsyncd.init.d-r1" "smb.confd::${_url}/net-fs/samba/files/4.4/samba4.confd" "smb.initd::${_url}/net-fs/samba/files/4.4/samba4.initd-r1" + "snort.confd::${_url}/net-analyzer/snort/files/snort.confd.2" + "snort.initd::${_url}/net-analyzer/snort/files/snort.rc12" "squid.confd::${_url}/net-proxy/squid/files/squid.confd-r1" "squid.initd::${_url}/net-proxy/squid/files/squid.initd-r4" + "syncthing.confd" + "syncthing.initd" + "tor.confd::${_url}/net-vpn/tor/files/tor.confd" + "tor.initd::${_url}/net-vpn/tor/files/tor.initd-r8" "transmission-daemon.confd::${_url}/net-p2p/transmission/files/transmission-daemon.confd.4" "transmission-daemon.initd::${_url}/net-p2p/transmission/files/transmission-daemon.initd.10" "ufw.confd::${_url}/net-firewall/ufw/files/ufw.confd" "ufw.initd::${_url}/net-firewall/ufw/files/ufw-2.initd" - "${_url}/net-ftp/vsftpd/files/vsftpd-checkconfig.sh" - "vsftpd.initd::${_url}/net-ftp/vsftpd/files/vsftpd.init" - "xinetd.confd::${_url}/sys-apps/xinetd/files/xinetd.confd" - "xinetd.initd::${_url}/sys-apps/xinetd/files/xinetd.rc6" - "ypbind.confd::${_url}/net-nds/ypbind/files/ypbind.confd-r1" - "ypbind.initd::${_url}/net-nds/ypbind/files/ypbind.initd" - "ypserv.confd::${_url}/net-nds/ypserv/files/ypserv.confd" - "rpc.yppasswdd.confd::${_url}/net-nds/ypserv/files/rpc.yppasswdd.confd" - "rpc.ypxfrd.confd::${_url}/net-nds/ypserv/files/rpc.ypxfrd.confd" - "ypserv.initd::${_url}/net-nds/ypserv/files/ypserv" - "rpc.yppasswdd.initd::${_url}/net-nds/ypserv/files/rpc.yppasswdd-r1" - "rpc.ypxfrd.initd::${_url}/net-nds/ypserv/files/rpc.ypxfrd-2.23" - "autofs.initd::${_url}/net-fs/autofs/files/autofs5.initd" - "openvpn.confd::${_url}/net-misc/openvpn/files/openvpn-2.1.conf" - "openvpn.initd::${_url}/net-misc/openvpn/files/openvpn-2.1.init" - "ntpd.confd::${_url}/net-misc/openntpd/files/openntpd.conf.d-20080406-r6" - "ntpd.initd::${_url}/net-misc/openntpd/files/openntpd.init.d-20080406-r6" - "tor.confd::${_url}/net-misc/tor/files/tor.confd" - "tor.initd::${_url}/net-misc/tor/files/tor.initd-r8" - "nginx.confd::${_url}/www-servers/nginx/files/nginx.confd" - "nginx.initd::${_url}/www-servers/nginx/files/nginx.initd-r4" + "unbound.confd::${_url}/net-dns/unbound/files/unbound.confd" + "unbound.initd::${_url}/net-dns/unbound/files/unbound.initd" "vnstatd.confd::${_url}/net-analyzer/vnstat/files/vnstatd.confd" "vnstatd.initd::${_url}/net-analyzer/vnstat/files/vnstatd.initd-r1" + "${_url}/net-ftp/vsftpd/files/vsftpd-checkconfig.sh" + "vsftpd.initd::${_url}/net-ftp/vsftpd/files/vsftpd.init" "wicd.initd" - "syncthing.confd" - "syncthing.initd" - "snort.confd::${_url}/net-analyzer/snort/files/snort.confd.2" - "snort.initd::${_url}/net-analyzer/snort/files/snort.rc12" - "unbound.confd::${_url}/net-dns/unbound/files/unbound.confd" - "unbound.initd::${_url}/net-dns/unbound/files/unbound.initd") + "xinetd.confd::${_url}/sys-apps/xinetd/files/xinetd.confd" + "xinetd.initd::${_url}/sys-apps/xinetd/files/xinetd.rc6") sha256sums=('d81e32d876594b48a7ff6d9123bf776c5bea5453eddd2fe40f4a9b79c11537aa' + '5ee23ee05da536fb67456c034e757841b27bc8528d93d2bc835e7427fe77d05e' '3cf1ab72446cb9417de916e4cd732f2056fb74d2c6f03da6741b7bae8c415448' 'a1a25bd66fa2edac593e77c5469e110466b7d8dc1bfa3f72a49c7117196986a4' 'dea35c48fdc94e475b427cb47ff47b914a66311afbd2d8397a833a60e4c1a7a4' @@ -140,560 +119,451 @@ sha256sums=('d81e32d876594b48a7ff6d9123bf776c5bea5453eddd2fe40f4a9b79c11537aa' '87082ebc37a969d2b7e658f155f96990c57ecb60c5fc23edee25afa9d247bd68' '916f4b14095ee4ec8a510391c883e9f01868e18d79a3d5cbeb13a104a793d45d' '3678565083106e698ca30c305c4561152a2b043fe894b8b773b28a0bb273411e' - '7e2341211ca14997b7a8a1f930f94db855291af597c568f680f80031c20d45b6' - '2938fe4206514d9868047bd8f888a699fa2097ca69edab176453436d4259abaa' - '2c9dcf73db7740350d41504633671e95287a349838acd5faa6d3b27418c9d6d0' '0b3b5bcfdb5010d20e3d4457f4128a4fb9f2d91261bfcf489601b1c714f9d815' '30572eeec9013fbfb6170f2b0bd1016582d2664268e4019fa8e2edd41e52919d' 'bf8539b70561d9eb495f55141a5295a8c2e8246af4d1990af94e98be952dcdf9' '0be7c9c04ce508cbefb3e913951d83c5ed7f0e01fe5aebcf3a5071f30ef3dbc2' 'aceed021f24b817347fdf216ccc61e7f34cb8fd831a377c2fbbf1230873498e2' - 'c652a4fe8a43dc68a818345db2b3acc560663b5b6c969324d4f23afb0fb96a94' - '247456e845e70badb44d9155b68e5f76d502361769e4332a9d1bd6345f85fbfa' - 'e8842fca856eae598fb8fe15ed8d3cef13e61851217be66b8cc4087af8cee8ad' - '56973f5c8196b4227114d94a1d3c8c95518be5a02c6b5dc97da243d0b6086843' - 'dc21ce6ba28f45eb450d5d0dbe7e5ea706b1547c8bece4ddb6836a5433427bd6' - '04102bff9b13d2e7c4e30603e7c98fe412d5f6c907a37dcea95f420f153c29ae' - '83c318a7502718a3e1693869297b95db1c32270b37d45b26b2bc151ec06f3c08' - '272905335a7c82034c6bac007bd4477aae21d8ce49e82355c48301db771ba77e' - '6f3d93442db0c17436547a16155e0d61dd5cd17f49fd3a642a9a5de833411d51' + '29677faab40d1fff740d743614788fd73c8c2d4167c3bd64d3e8bd4b0eb90d2b' + 'a28354a71c1d9d9f681835a1afe73ca538aca81c4a28d0166b66344854cca235' '5bca003ec3b67c7c78519aede1d82002579006ccfecce8f87b559df719f82e92' 'bcd84fca8efc1eec3aea489f238b51ce7226ffcdb1562044e48106897bc5a6fc' + '91fb1497b3a6ef0bb3a3d5baefdff801d8ff1cba27aaf742303415550814a09b' + 'e3ddd2620be927f66e9fb325ad3dbe89e7845b5a30de09fbe25fad2d13df641b' '903fdfdd8a5b482af011fc12f9050a9afceac09e4eed9e9cd4fa58240ab61349' '29c6d57ac3ec6018cadc6ba6cd9b90c9ed46e20049b970fdcc68ee2481a2ee41' '43a483014bf177f9238e54a7b8210d5a76830beb67c18999409e543fd744c9e4' + '330149a83684ddabe413d134d4c8efad4c88b18c2ab67165014deff5f7fffad2' + '89f69bcd627868830c421bc6270f08a1c3edf1a1e5fbdedf33c7a7d530bdfccf' '81c0bf86e26770ae9e522fcce86ab05528d37ce8ad3ce1bcf17250bbd0285a6a' '34cb4ef8067b9001005931c30ab87be41f47c20ef1185a3afbc86d3d6f01996e' '7a2e3996dd9dd02307b11ffb2dca8915490283820a6b6c124d808a38badcc505' - '00d1dfb3b893db5d6a213a4edda622c7d64dcafa40b3019f15e070c164286632' - '2a4dc1f695a881d0715e6220dad54b3690d98bf26b618b0fe6cb4ab26823e047' - 'ef7eec0fd1921f786580169628c9cc7af82c73d0b2cf420fba0e87f8fd428651' - 'da992f87b5043e22dfd340b4a5440b76dce29cc14d3ef7b0ce586726fe4b220b' 'de758791b16b89a648c01867af7f51bc9bd44e40cbe868e439b753ff5d9572e5' 'fc6240c77448d36cf3255e6c264737a6ce69424b5b62d0986eb322c4d8a1a85b' '53755809cc27fdbaf98752cd3da45b5c2bda62dd46fcc37570c6e237f7954ffa' 'd40c512760bc0cc56629429219e1eadbcee23aa12ec5b3145f679ed644d0912c' + '337378f098e0cd59fb5c28a26b5b74b32168cf48596064469e6a5ba04fe3a36f' + 'ec06f884dd3ed3b8d20fd848769ab1dece4de1605d8fbde11c27665ce9952291' '507d8f26bdb7227c39ed0641429d32972513e4240bf59a20b076e8019201b20d' '8a1369aab5cef61d19ea61c373819bd4eeabd2ba4c70f831e5009891993f3a4f' + 'eb4a4315916fe3f8688c1da5bb5c249a1f402e61617452288d5b0668078c955c' + '63708b1a7b61ae791df64bb4cefa01dc12236f96bb67fe6d0b2c513e11c81f3e' + '41d780f291847e19f632428bbf27c3f289414afd237546d2974da1b75384c25c' + 'b637006715ab1cb0b321dc9e703b1dcaf61878c13134669eabebe4b422da96d3' '9065bcf729309aebd48ae2214a461d162924462fb2db51f33aed40dd0c3b4f25' '8925e7b2f59de7c116778fa9a498e8209358117b08870a9208fe37c8b2f01ee5' '069aa7382b40aecebf26ef53f3f4c49890314e0357925c84b3c15f1d0b913be0' '7d668989a96d47cb5a9f71ae2e6000b469be6d1786f9cf3809b28461d42308ea' + '7da812ef83f8f8b9351363525ab6bebd5348faed76d0ae424dcbd7cb6a830dfd' + 'fe18b49ea3c50bf17343581599953dac1cc190d1ea9aab1e69eab0b295420c76' + '2cd5b91f86bc26aca85166a50de89faaccbf1ea8f219efb48b50b7ed0f3fe377' + '631738731bf78a6d0c00c5180c2b3a75b96fffb596d8c9e04dbb0cd24fcc4fec' '2de7c7c1edfe3ae0480e22d988a564db3bb873050929ebb6e8361d7a1288ddda' '46dba1df0fb5d575d6d37ed54aa887d9a5fa8853bc46b2b0bd18f9fab2a27640' + '66b2b53b077ddc2d5eb1d81faa99fa0f4f0db01520900ba948001e539bfe02d8' 'e401e2cf7c0180a170d3dc3e91d7e98002bae7b013df72813b7bcf89b864fb3a' - '6934fee5e3997d7e152c26d0c1a8f8d2f7563287fcc1ae934e4552d523c39329' - '79f6c6ed4875f00fe702f69e9a6180a032d5a47f3e58e892e6ba0e2746b6fec8' - 'fad2c4c9927edd6a3b7479dba733f67c5cfef399de133c1b4a69ac0526692dbd' - '4edd475ca95d31cfcea20a8e6268024f8128423bc7ae67edb535e6811c64668e' - 'e46afe737bfc57aa31be1a441615fcc112e1ebf41d631c1929e00b81baca119d' - 'bd1f245a362f85319e83965e8b825e66e686a4a0bf185ab8ec51fd335bc873c2' - '24d4bfd2d938b3b89ae89067e1249631f2a05a81a95772c82861700039f69ab4' - '870931c5a97510aa266b2df3c1b29fb314e7174cd59fd8b0541ce123ec7c24f3' - 'a0a1d437d66636ebb186e7249e8a7aacbff909dde544bd95eaf16f9956708ce1' - '5ee23ee05da536fb67456c034e757841b27bc8528d93d2bc835e7427fe77d05e' - '330149a83684ddabe413d134d4c8efad4c88b18c2ab67165014deff5f7fffad2' - '89f69bcd627868830c421bc6270f08a1c3edf1a1e5fbdedf33c7a7d530bdfccf' - '91fb1497b3a6ef0bb3a3d5baefdff801d8ff1cba27aaf742303415550814a09b' - 'e3ddd2620be927f66e9fb325ad3dbe89e7845b5a30de09fbe25fad2d13df641b' - '41d780f291847e19f632428bbf27c3f289414afd237546d2974da1b75384c25c' - 'b637006715ab1cb0b321dc9e703b1dcaf61878c13134669eabebe4b422da96d3' - '29677faab40d1fff740d743614788fd73c8c2d4167c3bd64d3e8bd4b0eb90d2b' - 'a28354a71c1d9d9f681835a1afe73ca538aca81c4a28d0166b66344854cca235' - '2cd5b91f86bc26aca85166a50de89faaccbf1ea8f219efb48b50b7ed0f3fe377' - '631738731bf78a6d0c00c5180c2b3a75b96fffb596d8c9e04dbb0cd24fcc4fec' - '8bbe1e651b310a23f26e27e8b5a3eca0bc301f28c3663e4a1e9fb5f5edf29a2d' - 'eb4a4315916fe3f8688c1da5bb5c249a1f402e61617452288d5b0668078c955c' - '8c0be4be4ce5aa32df4c0f06dceb3b4d2b71701b1e46a1df0daba6a18dd9d3e4' - '337378f098e0cd59fb5c28a26b5b74b32168cf48596064469e6a5ba04fe3a36f' - 'ec06f884dd3ed3b8d20fd848769ab1dece4de1605d8fbde11c27665ce9952291' - '7da812ef83f8f8b9351363525ab6bebd5348faed76d0ae424dcbd7cb6a830dfd' - 'fe18b49ea3c50bf17343581599953dac1cc190d1ea9aab1e69eab0b295420c76') + '6934fee5e3997d7e152c26d0c1a8f8d2f7563287fcc1ae934e4552d523c39329') pkgver() { - date +%Y%m%d + date +%Y%m%d } _inst_initd(){ - install -Dm755 ${srcdir}/$1.initd ${pkgdir}/etc/init.d/$1 + install -Dm755 ${srcdir}/$1.initd ${pkgdir}/etc/init.d/$1 - sed -e 's|/var/run|/run|g' \ - -i ${pkgdir}/etc/init.d/$1 + sed ${_sed_args[@]} -i ${pkgdir}/etc/init.d/$1 } _inst_confd(){ - install -Dm755 ${srcdir}/$1.confd ${pkgdir}/etc/conf.d/$1 + install -Dm755 ${srcdir}/$1.confd ${pkgdir}/etc/conf.d/$1 } package_apache-openrc() { - pkgdesc="OpenRC apache init script" - depends=('openrc' 'apache') - backup=('etc/conf.d/httpd') + pkgdesc="OpenRC apache init script" + depends=('openrc' 'apache') + backup=('etc/conf.d/httpd') - install -Dm644 "${srcdir}/gentoo-apache-${_apver}/init/apache2.confd" "${pkgdir}/etc/conf.d/httpd" - install -Dm755 "${srcdir}/gentoo-apache-${_apver}/init/apache2.initd" "${pkgdir}/etc/init.d/httpd" + install -Dm644 "${srcdir}/gentoo-apache-${_apver}/init/apache2.confd" "${pkgdir}/etc/conf.d/httpd" + install -Dm755 "${srcdir}/gentoo-apache-${_apver}/init/apache2.initd" "${pkgdir}/etc/init.d/httpd" - sed -e 's|/usr/sbin/apache2|/usr/bin/apachectl|' \ - -e 's|/etc/apache2/httpd.conf|/etc/httpd/conf/httpd.conf|' \ - -e 's/! test -f/test -f/' \ - -e 's|/usr/lib/apache2|/usr/lib/httpd|' \ - -e 's|apache2.pid|httpd/httpd.pid|' \ - -e 's|apache2 >/dev/null|httpd >/dev/null|' \ - -e 's|/run/apache_ssl_mutex|/run/httpd|' \ - -i "${pkgdir}/etc/init.d/httpd" + sed -e 's|/usr/sbin/apache2|/usr/bin/apachectl|' \ + -e 's|/etc/apache2/httpd.conf|/etc/httpd/conf/httpd.conf|' \ + -e 's/! test -f/test -f/' \ + -e 's|/usr/lib/apache2|/usr/lib/httpd|' \ + -e 's|apache2.pid|httpd/httpd.pid|' \ + -e 's|apache2 >/dev/null|httpd >/dev/null|' \ + -e 's|/run/apache_ssl_mutex|/run/httpd|' \ + -i "${pkgdir}/etc/init.d/httpd" - sed -e 's|/etc/apache2/httpd.conf|/etc/httpd/conf/httpd.conf|' \ - -e 's|/usr/lib/apache2|/usr/lib/httpd|' \ - -e 's|apache2.pid|httpd/httpd.pid|' \ - -e 's|apache2|httpd|g' \ - -i "${pkgdir}/etc/conf.d/httpd" + sed -e 's|/etc/apache2/httpd.conf|/etc/httpd/conf/httpd.conf|' \ + -e 's|/usr/lib/apache2|/usr/lib/httpd|' \ + -e 's|apache2.pid|httpd/httpd.pid|' \ + -e 's|apache2|httpd|g' \ + -i "${pkgdir}/etc/conf.d/httpd" } package_autofs-openrc() { - pkgdesc="OpenRC autofs init script" - depends=('openrc' 'autofs') + pkgdesc="OpenRC autofs init script" + depends=('openrc' 'autofs') - _inst_initd 'autofs' + _inst_initd 'autofs' - sed -e 's|/usr/sbin|/usr/bin|g' \ - -i "${pkgdir}/etc/init.d/autofs" + sed -e 's|/usr/sbin|/usr/bin|g' \ + -i "${pkgdir}/etc/init.d/autofs" } package_bind-openrc() { - pkgdesc="OpenRC bind init script" - depends=('openrc' 'bind') - backup=('etc/conf.d/named') + pkgdesc="OpenRC bind init script" + depends=('openrc' 'bind') + backup=('etc/conf.d/named') - _inst_confd 'named' - _inst_initd 'named' + _inst_confd 'named' + _inst_initd 'named' - sed -e 's|/usr/sbin|/usr/bin|g' \ - -e 's|/etc/bind/named.conf|/etc/named.conf|g' \ - -i "${pkgdir}/etc/init.d/named" + sed -e 's|/usr/sbin|/usr/bin|g' \ + -e 's|/etc/bind/named.conf|/etc/named.conf|g' \ + -i "${pkgdir}/etc/init.d/named" } package_cyrus-sasl-openrc() { - pkgdesc="OpenRC cyrus-sasl init script" - depends=('openrc' 'cyrus-sasl') + pkgdesc="OpenRC cyrus-sasl init script" + depends=('openrc' 'cyrus-sasl') - _inst_initd 'saslauthd' + _inst_initd 'saslauthd' - sed -e 's|/usr/sbin|/usr/bin|g' \ - -i "${pkgdir}/etc/init.d/saslauthd" + sed -e 's|/usr/sbin|/usr/bin|g' \ + -i "${pkgdir}/etc/init.d/saslauthd" } package_dhcp-openrc() { - pkgdesc="OpenRC dhcp init script" - depends=('openrc' 'dhcp') - optdepends=('openldap-openrc: openldap initscript' - 'bind-openrc: bind initscript') - backup=('etc/conf.d/dhcpd' - 'etc/conf.d/dhcrelay' - 'etc/conf.d/dhcrelay6') - install=dhcp.install - - for f in dhcpd dhcrelay;do - _inst_confd $f - _inst_initd $f - done + pkgdesc="OpenRC dhcp init script" + depends=('openrc' 'dhcp') + optdepends=('openldap-openrc: openldap initscript' + 'bind-openrc: bind initscript') + backup=('etc/conf.d/dhcpd' + 'etc/conf.d/dhcrelay' + 'etc/conf.d/dhcrelay6') + install=dhcp.install + + for f in dhcpd dhcrelay;do + _inst_confd $f + _inst_initd $f + done # - _inst_confd 'dhcrelay6' -# _inst_initd 'dhcrelay6' + _inst_confd 'dhcrelay6' +# _inst_initd 'dhcrelay6' - install -Dm755 "${srcdir}/dhcrelay.initd" "${pkgdir}/etc/init.d/dhcrelay6" + install -Dm755 "${srcdir}/dhcrelay.initd" "${pkgdir}/etc/init.d/dhcrelay6" - for f in ${pkgdir}/etc/init.d/*;do - sed -e 's|/usr/sbin|/usr/bin|g' \ - -e 's|#@slapd@|ldap slapd|' \ - -i $f - done + for f in ${pkgdir}/etc/init.d/*;do + sed -e 's|/usr/sbin|/usr/bin|g' \ + -e 's|#@slapd@|ldap slapd|' \ + -i $f + done } package_hostapd-openrc() { - pkgdesc="OpenRC hostapd init script" - depends=('openrc' 'hostapd') - backup=('etc/conf.d/hostapd') + pkgdesc="OpenRC hostapd init script" + depends=('openrc' 'hostapd') + backup=('etc/conf.d/hostapd') - _inst_confd 'hostapd' - _inst_initd 'hostapd' + _inst_confd 'hostapd' + _inst_initd 'hostapd' - sed -e 's|/usr/sbin|/usr/bin|g' -i "${pkgdir}/etc/init.d/hostapd" + sed -e 's|/usr/sbin|/usr/bin|g' -i "${pkgdir}/etc/init.d/hostapd" } package_krb5-openrc() { - pkgdesc="OpenRC krb5 init script" - depends=('openrc' 'krb5') + pkgdesc="OpenRC krb5 init script" + depends=('openrc' 'krb5') - for f in krb5kadmind krb5kdc krb5kpropd;do - _inst_initd $f - done + for f in krb5kadmind krb5kdc krb5kpropd;do + _inst_initd $f + done - for f in ${pkgdir}/etc/init.d/*;do - sed -e 's|/usr/sbin|/usr/bin|g' \ - -e 's|mit-krb5kdc|krb5kdc|g' \ - -e 's|mit-krb5kadmind|krb5kadmind|g' \ - -i $f - done + for f in ${pkgdir}/etc/init.d/*;do + sed -e 's|/usr/sbin|/usr/bin|g' \ + -e 's|mit-krb5kdc|krb5kdc|g' \ + -e 's|mit-krb5kadmind|krb5kadmind|g' \ + -i $f + done } package_lighttpd-openrc() { - pkgdesc="OpenRC lighttpd init script" - depends=('openrc' 'lighttpd') - backup=('etc/conf.d/lighttpd') - install=lighttpd.install + pkgdesc="OpenRC lighttpd init script" + depends=('openrc' 'lighttpd') + backup=('etc/conf.d/lighttpd') + install=lighttpd.install - _inst_confd 'lighttpd' - _inst_initd 'lighttpd' + _inst_confd 'lighttpd' + _inst_initd 'lighttpd' - sed -e 's|/usr/sbin|/usr/bin|g' \ - -e 's/lighttpd:lighttpd/http:http/' \ - -i "${pkgdir}/etc/init.d/lighttpd" + sed -e 's|/usr/sbin|/usr/bin|g' \ + -e 's/lighttpd:lighttpd/http:http/' \ + -i "${pkgdir}/etc/init.d/lighttpd" } -package_rpcbind-openrc() { - pkgdesc="OpenRC rpcbind init script" - depends=('openrc' 'rpcbind') -# backup=('etc/conf.d/rpcbind') +package_nginx-openrc() { + pkgdesc="OpenRC nginx init script" + depends=('openrc' 'nginx') + backup=('etc/conf.d/nginx') -# _inst_confd 'rpcbind' - _inst_initd 'rpcbind' + _inst_confd 'nginx' + _inst_initd 'nginx' - sed -e 's|/sbin|/usr/bin|g' \ - -e 's|RPCBIND_OPTS|RPCBIND_ARGS|' \ - -i "${pkgdir}/etc/init.d/rpcbind" + sed -e 's|/usr/sbin|/usr/bin|g' \ + -i "${pkgdir}/etc/init.d/nginx" } -package_nfs-utils-openrc() { - pkgdesc="OpenRC nfs-utils init script" - depends=('nfs-utils' 'rpcbind-openrc' 'device-mapper-openrc') - optdepends=('ypbind-openrc: ypbind initscript' - 'quota-tools-openrc: quota-tools initscript' - 'bind-openrc: bind initscript') - backup=('etc/conf.d/nfs' - 'etc/conf.d/nfsclient') - - for f in nfs nfsclient;do - _inst_confd $f - _inst_initd $f - done +package_openldap-openrc() { + pkgdesc="OpenRC openldap init script" + depends=('openrc' 'openldap') + backup=('etc/conf.d/slapd') - for f in rpc.gssd rpc.idmapd rpc.pipefs rpc.statd rpc.svcgssd;do - _inst_initd $f - done + _inst_confd 'slapd' + _inst_initd 'slapd' - for f in ${pkgdir}/etc/init.d/*;do - sed -e 's|/usr/sbin|/usr/bin|g' -i $f - done + sed -e 's|/usr/sbin|/usr/bin|g' \ + -e 's|/usr/lib/openldap/slapd|/usr/lib/slapd|g' \ + -i "${pkgdir}/etc/init.d/slapd" } package_openntpd-openrc() { - pkgdesc="OpenRC openntpd init script" - depends=('openrc' 'openntpd') - groups=('openrc-net') - provides=('openrc-timed') - conflicts=('ntp' - 'ntp-openrc' - 'systemd-sysvcompat') - backup=('etc/conf.d/ntpd') - - _inst_confd 'ntpd' - _inst_initd 'ntpd' - - sed -e 's|/usr/sbin|/usr/bin|g' \ - -i "${pkgdir}/etc/init.d/ntpd" -} - -package_openldap-openrc() { - pkgdesc="OpenRC openldap init script" - depends=('openrc' 'openldap') - backup=('etc/conf.d/slapd') + pkgdesc="OpenRC openntpd init script" + depends=('openrc' 'openntpd') + groups=('openrc-net') + provides=('openrc-timed') + conflicts=('ntp' 'ntp-openrc' 'systemd-sysvcompat') + backup=('etc/conf.d/ntpd') - _inst_confd 'slapd' - _inst_initd 'slapd' + _inst_confd 'ntpd' + _inst_initd 'ntpd' - sed -e 's|/usr/sbin|/usr/bin|g' \ - -e 's|/usr/lib/openldap/slapd|/usr/lib/slapd|g' \ - -i "${pkgdir}/etc/init.d/slapd" + sed -e 's|/usr/sbin|/usr/bin|g' \ + -i "${pkgdir}/etc/init.d/ntpd" } package_openslp-openrc() { - pkgdesc="OpenRC openslp init script" - depends=('openrc' 'openslp') + pkgdesc="OpenRC openslp init script" + depends=('openrc' 'openslp') - _inst_initd 'slpd' + _inst_initd 'slpd' - sed -e 's|/usr/sbin|/usr/bin|g' \ - -i "${pkgdir}/etc/init.d/slpd" + sed -e 's|/usr/sbin|/usr/bin|g' \ + -i "${pkgdir}/etc/init.d/slpd" } package_openssh-openrc() { - pkgdesc="OpenRC openssh init script" - depends=('openrc' 'openssh') - optdepends=('bind-openrc: bind initscript') - backup=('etc/conf.d/sshd') + pkgdesc="OpenRC openssh init script" + depends=('openrc' 'openssh') + optdepends=('bind-openrc: bind initscript') + backup=('etc/conf.d/sshd') - _inst_confd 'sshd' - _inst_initd 'sshd' + _inst_confd 'sshd' + _inst_initd 'sshd' - sed -e 's|/usr/sbin|/usr/bin|g' \ - -i "${pkgdir}/etc/conf.d/sshd" + sed -e 's|/usr/sbin|/usr/bin|g' \ + -i "${pkgdir}/etc/conf.d/sshd" - sed -e 's|/usr/sbin|/usr/bin|g' \ - -i "${pkgdir}/etc/init.d/sshd" + sed -e 's|/usr/sbin|/usr/bin|g' \ + -i "${pkgdir}/etc/init.d/sshd" } package_openvpn-openrc() { - pkgdesc="OpenRC openvpn init script" - depends=('openrc' 'openvpn') - backup=('etc/conf.d/openvpn') + pkgdesc="OpenRC openvpn init script" + depends=('openrc' 'openvpn') + backup=('etc/conf.d/openvpn') - _inst_confd 'openvpn' - _inst_initd 'openvpn' + _inst_confd 'openvpn' + _inst_initd 'openvpn' - sed -e 's|/usr/sbin|/usr/bin|g' \ - -i "${pkgdir}/etc/init.d/openvpn" + sed -e 's|/usr/sbin|/usr/bin|g' \ + -i "${pkgdir}/etc/init.d/openvpn" } package_polipo-openrc() { - pkgdesc="OpenRC polipo init script" - depends=('openrc' 'polipo') + pkgdesc="OpenRC polipo init script" + depends=('openrc' 'polipo') - _inst_initd 'polipo' + _inst_initd 'polipo' - sed -e 's|/usr/sbin|/usr/bin|g' \ - -i "${pkgdir}/etc/init.d/polipo" + sed -e 's|/usr/sbin|/usr/bin|g' \ + -i "${pkgdir}/etc/init.d/polipo" } package_postfix-openrc() { - pkgdesc="OpenRC postfix init script" - depends=('openrc' 'postfix') - optdepends=('bind-openrc: bind initscript' - 'ypbind-openrc: ypbind initscript' - 'cyrus-sasl-openrc: cyrus-sasl initscript') + pkgdesc="OpenRC postfix init script" + depends=('openrc' 'postfix') + optdepends=('bind-openrc: bind initscript' + 'cyrus-sasl-openrc: cyrus-sasl initscript') - _inst_initd 'postfix' + _inst_initd 'postfix' - sed -e 's|/usr/sbin|/usr/bin|g' \ - -i "${pkgdir}/etc/init.d/postfix" + sed -e 's|/usr/sbin|/usr/bin|g' \ + -i "${pkgdir}/etc/init.d/postfix" } package_privoxy-openrc() { - pkgdesc="OpenRC privoxy init script" - depends=('openrc' 'privoxy') + pkgdesc="OpenRC privoxy init script" + depends=('openrc' 'privoxy') - _inst_initd 'privoxy' + _inst_initd 'privoxy' - sed -e "${_shebang}" \ - -e 's|/usr/sbin|/usr/bin|g' \ - -e "${_runpath}" \ - -i "${pkgdir}/etc/init.d/privoxy" -} - -package_quota-tools-openrc() { - pkgdesc="OpenRC quota-tools init script" - depends=('quota-tools' 'rpcbind-openrc') - optdepends=('ypbind-openrc: ypbind initscript') - backup=('etc/conf.d/quota') - - _inst_confd 'quota' - _inst_initd 'quota' - _inst_initd 'rpc.rquotad' - - for f in ${pkgdir}/etc/init.d/*;do - sed -e 's|/usr/sbin|/usr/bin|g' -i $f - done + sed -e "${_shebang}" \ + -e 's|/usr/sbin|/usr/bin|g' \ + -e "${_runpath}" \ + -i "${pkgdir}/etc/init.d/privoxy" } package_rsync-openrc() { - pkgdesc="OpenRC rsync init script" - depends=('openrc' 'rsync') - backup=('etc/conf.d/rsyncd') + pkgdesc="OpenRC rsync init script" + depends=('openrc' 'rsync') + backup=('etc/conf.d/rsyncd') - _inst_confd 'rsyncd' - _inst_initd 'rsyncd' + _inst_confd 'rsyncd' + _inst_initd 'rsyncd' - sed -e 's|/usr/sbin|/usr/bin|g' \ - -i "${pkgdir}/etc/init.d/rsyncd" + sed -e 's|/usr/sbin|/usr/bin|g' \ + -i "${pkgdir}/etc/init.d/rsyncd" } package_samba-openrc() { - pkgdesc="OpenRC samba init script" - depends=('openrc' 'samba') - backup=('etc/conf.d/smb') + pkgdesc="OpenRC samba init script" + depends=('openrc' 'samba') + backup=('etc/conf.d/smb') - _inst_confd 'smb' - _inst_initd 'smb' + _inst_confd 'smb' + _inst_initd 'smb' - sed -e 's|/usr/sbin|/usr/bin|g' \ - -e 's/="samba"/="smb"/' \ - -i "${pkgdir}/etc/conf.d/smb" + sed -e 's|/usr/sbin|/usr/bin|g' \ + -e 's/="samba"/="smb"/' \ + -i "${pkgdir}/etc/conf.d/smb" - sed -e 's|/usr/sbin|/usr/bin|g' \ - -e 's/##samba/##smb/' \ - -e 's|"samba"|"smb"|' \ - -i "${pkgdir}/etc/init.d/smb" + sed -e 's|/usr/sbin|/usr/bin|g' \ + -e 's/##samba/##smb/' \ + -e 's|"samba"|"smb"|' \ + -i "${pkgdir}/etc/init.d/smb" } -package_squid-openrc() { - pkgdesc="OpenRC squid init script" - depends=('openrc' 'squid') - optdepends=('bind-openrc: bind initscript') - backup=('etc/conf.d/squid') - - _inst_confd 'squid' - _inst_initd 'squid' - - sed -e 's|/usr/sbin|/usr/bin|g' \ - -e 's|chown squid|chown proxy|' \ - -e 's|squid:squid|proxy:proxy|' \ - -i "${pkgdir}/etc/init.d/squid" -} - -package_transmission-openrc() { - pkgdesc="OpenRC transmission init script" - depends=('openrc' 'transmission-cli') - backup=('etc/conf.d/transmission-daemon') +package_snort-openrc() { + pkgdesc="OpenRC snort init script" + depends=('openrc' 'snort') + optdepends=('mysql-openrc: mysql initscript' + 'postgresql-openrc: postgresql initscript') + backup=('etc/conf.d/snort') - _inst_confd 'transmission-daemon' - _inst_initd 'transmission-daemon' + _inst_confd 'snort' + _inst_initd 'snort' } -package_ufw-openrc() { - pkgdesc="OpenRC ufw init script" - depends=('openrc' 'ufw') - backup=('etc/conf.d/ufw') +package_squid-openrc() { + pkgdesc="OpenRC squid init script" + depends=('openrc' 'squid') + optdepends=('bind-openrc: bind initscript') + backup=('etc/conf.d/squid') - _inst_confd 'ufw' - _inst_initd 'ufw' + _inst_confd 'squid' + _inst_initd 'squid' - sed -e 's|/usr/sbin|/usr/bin|g' \ - -e 's|/usr/share/ufw/ufw-init-functions|/usr/lib/ufw/ufw-init-functions|g' \ - -i "${pkgdir}/etc/init.d/ufw" + sed -e 's|/usr/sbin|/usr/bin|g' \ + -e 's|chown squid|chown proxy|' \ + -e 's|squid:squid|proxy:proxy|' \ + -i "${pkgdir}/etc/init.d/squid" } -package_vsftpd-openrc() { - pkgdesc="OpenRC vsftpd init script" - depends=('openrc' 'vsftpd') - optdepends=('bind-openrc: bind initscript') - - _inst_initd 'vsftpd' - - install -Dm755 "${srcdir}/vsftpd-checkconfig.sh" "${pkgdir}/usr/lib/vsftpd-checkconfig.sh" - - sed -e 's|/usr/sbin|/usr/bin|g' \ - -e 's|/usr/libexec/|/usr/lib/|g' \ - -e 's|/etc/vsftpd/|/etc/|g' \ - -i "${pkgdir}/etc/init.d/vsftpd" +package_syncthing-openrc() { + pkgdesc="OpenRC syncthing init script" + depends=('openrc' 'syncthing') + backup=('etc/conf.d/syncthing') - sed -e 's|/etc/vsftpd/|/etc/|g' \ - -i "${pkgdir}/usr/lib/vsftpd-checkconfig.sh" + _inst_confd 'syncthing' + _inst_initd 'syncthing' } -package_xinetd-openrc() { - pkgdesc="OpenRC xinetd init script" - depends=('openrc' 'xinetd') - backup=('etc/conf.d/xinetd') - - _inst_confd 'xinetd' - _inst_initd 'xinetd' +package_tor-openrc() { + pkgdesc="OpenRC tor init script" + depends=('openrc' 'tor') + backup=('etc/conf.d/tor') + install=tor.install - sed -e 's|/usr/sbin|/usr/bin|g' \ - -i "${pkgdir}/etc/init.d/xinetd" + _inst_confd 'tor' + _inst_initd 'tor' } -package_ypbind-mt-openrc() { - pkgdesc="OpenRC ypbind-mt init script" - depends=('ypbind-mt' 'rpcbind-openrc' 'openslp-openrc') - optdepends=('ypserv-openrc: ypserv initscript') - backup=('etc/conf.d/ypbind') - - _inst_confd 'ypbind' - _inst_initd 'ypbind' +package_transmission-openrc() { + pkgdesc="OpenRC transmission init script" + depends=('openrc' 'transmission-cli') + backup=('etc/conf.d/transmission-daemon') - sed -e 's|/usr/sbin|/usr/bin|g' \ - -i "${pkgdir}/etc/init.d/ypbind" + _inst_confd 'transmission-daemon' + _inst_initd 'transmission-daemon' } -package_ypserv-openrc() { - pkgdesc="OpenRC ypserv init script" - depends=('openrc' 'ypserv') - backup=('etc/conf.d/rpc.yppasswdd' - 'etc/conf.d/rpc.ypxfrd' - 'etc/conf.d/ypserv') +package_ufw-openrc() { + pkgdesc="OpenRC ufw init script" + depends=('openrc' 'ufw') + backup=('etc/conf.d/ufw') - for f in ypserv rpc.yppasswdd rpc.ypxfrd;do - _inst_confd $f - _inst_initd $f - done + _inst_confd 'ufw' + _inst_initd 'ufw' - for f in ${pkgdir}/etc/init.d/*;do - sed -e 's|/usr/sbin|/usr/bin|g' -i $f - done + sed -e 's|/usr/sbin|/usr/bin|g' \ + -e 's|/usr/share/ufw/ufw-init-functions|/usr/lib/ufw/ufw-init-functions|g' \ + -i "${pkgdir}/etc/init.d/ufw" } -package_tor-openrc() { - pkgdesc="OpenRC tor init script" - depends=('openrc' 'tor') - backup=('etc/conf.d/tor') - install=tor.install +package_unbound-openrc() { + pkgdesc="OpenRC unbound init script" + depends=('openrc' 'unbound') + backup=('etc/conf.d/unbound') - _inst_confd 'tor' - _inst_initd 'tor' + _inst_confd 'unbound' + _inst_initd 'unbound' } -package_wicd-openrc() { - pkgdesc="OpenRC wicd script" - depends=('openrc' 'wicd') +package_vnstat-openrc() { + pkgdesc="OpenRC vnstat init script" + depends=('openrc' 'vnstat') + backup=('etc/conf.d/vnstatd') - _inst_initd 'wicd' + _inst_confd 'vnstatd' + _inst_initd 'vnstatd' } -package_syncthing-openrc() { - pkgdesc="OpenRC syncthing init script" - depends=('openrc' 'syncthing') - backup=('etc/conf.d/syncthing') +package_vsftpd-openrc() { + pkgdesc="OpenRC vsftpd init script" + depends=('openrc' 'vsftpd') + optdepends=('bind-openrc: bind initscript') - _inst_confd 'syncthing' - _inst_initd 'syncthing' -} + _inst_initd 'vsftpd' -package_nginx-openrc() { - pkgdesc="OpenRC nginx init script" - depends=('openrc' 'nginx') - backup=('etc/conf.d/nginx') + install -Dm755 "${srcdir}/vsftpd-checkconfig.sh" "${pkgdir}/usr/lib/vsftpd-checkconfig.sh" - _inst_confd 'nginx' - _inst_initd 'nginx' + sed -e 's|/usr/sbin|/usr/bin|g' \ + -e 's|/usr/libexec/|/usr/lib/|g' \ + -e 's|/etc/vsftpd/|/etc/|g' \ + -i "${pkgdir}/etc/init.d/vsftpd" - sed -e 's|/usr/sbin|/usr/bin|g' \ - -i "${pkgdir}/etc/init.d/nginx" + sed -e 's|/etc/vsftpd/|/etc/|g' \ + -i "${pkgdir}/usr/lib/vsftpd-checkconfig.sh" } -package_vnstat-openrc() { - pkgdesc="OpenRC vnstat init script" - depends=('openrc' 'vnstat') - backup=('etc/conf.d/vnstatd') +package_wicd-openrc() { + pkgdesc="OpenRC wicd script" + depends=('openrc' 'wicd') + install=wicd.install - _inst_confd 'vnstatd' - _inst_initd 'vnstatd' + _inst_initd 'wicd' } -package_snort-openrc() { - pkgdesc="OpenRC snort init script" - depends=('openrc' 'snort') - optdepends=('mysql-openrc: mysql initscript' - 'postgresql-openrc: postgresql initscript') - backup=('etc/conf.d/snort') - - _inst_confd 'snort' - _inst_initd 'snort' -} +package_xinetd-openrc() { + pkgdesc="OpenRC xinetd init script" + depends=('openrc' 'xinetd') + backup=('etc/conf.d/xinetd') -package_unbound-openrc() { - pkgdesc="OpenRC unbound init script" - depends=('openrc' 'unbound') - backup=('etc/conf.d/unbound') + _inst_confd 'xinetd' + _inst_initd 'xinetd' - _inst_confd 'unbound' - _inst_initd 'unbound' + sed -e 's|/usr/sbin|/usr/bin|g' \ + -i "${pkgdir}/etc/init.d/xinetd" } diff --git a/pcr/openrc-net/syncthing.initd b/pcr/openrc-net/syncthing.initd index e32dd5cc7..1e5f9c678 100644 --- a/pcr/openrc-net/syncthing.initd +++ b/pcr/openrc-net/syncthing.initd @@ -1,4 +1,4 @@ -#!/sbin/openrc-run +#!/usr/bin/openrc-run # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ diff --git a/pcr/openrc-net/wicd.initd b/pcr/openrc-net/wicd.initd index 727d82fc6..70123946c 100644 --- a/pcr/openrc-net/wicd.initd +++ b/pcr/openrc-net/wicd.initd @@ -1,4 +1,4 @@ -#!/sbin/openrc-run +#!/usr/bin/openrc-run # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 diff --git a/pcr/openrc-video/PKGBUILD b/pcr/openrc-video/PKGBUILD index 2831422b8..0566b3fc3 100644 --- a/pcr/openrc-video/PKGBUILD +++ b/pcr/openrc-video/PKGBUILD @@ -1,14 +1,19 @@ -# Maintainer (Arch): artoo <artoo@manjaro.org> +# Maintainer (Artix): artoo <artoo@cromnix.org> # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> _url="https://raw.githubusercontent.com/gentoo/gentoo/master" +_sed_args=(-e 's|/var/run|/run|g' -e 's|/usr/sbin|/usr/bin|g') +prefix=true + +$_prefix && _sed_args+=(-e 's|#!/sbin/openrc-run|#!/usr/bin/openrc-run|g') + pkgbase=openrc-video pkgname=('virtualgl-openrc') -pkgver=20170314 -pkgrel=1.parabola2 +pkgver=20170927 +pkgrel=1 arch=('any') -url="https://github.com/manjaro/packages-openrc" +url="https://github.com/artix-linux" license=('GPL') groups=('openrc-video') source=("vgl.confd::${_url}/x11-misc/virtualgl/files/vgl.confd-r2" @@ -25,8 +30,7 @@ pkgver() { _inst_initd(){ install -Dm755 ${srcdir}/$1.initd ${pkgdir}/etc/init.d/$1 - sed -e 's|/var/run|/run|g' \ - -i ${pkgdir}/etc/init.d/$1 + sed ${_sed_args[@]} -i ${pkgdir}/etc/init.d/$1 } _inst_confd(){ diff --git a/pcr/yacy-openrc/PKGBUILD b/pcr/yacy-openrc/PKGBUILD deleted file mode 100644 index 627ceab50..000000000 --- a/pcr/yacy-openrc/PKGBUILD +++ /dev/null @@ -1,19 +0,0 @@ -# Maintainer: Bruno Cichoń <ebrasca.ebrasca@openmailbox.org> -# Contributor: André Silva <emulatorman@hyperbola.info> - -pkgname=yacy-openrc -pkgver=0.1.0 -pkgrel=1 -pkgdesc="OpenRC init script for YaCy" -arch=('any') -license=('GPL2') -depends=('openrc' 'yacy') -backup=('etc/init.d/yacy') -install=yacy.install -source=('yacy') -md5sums=('98c064c816a9a05a324666e2aecd01bd') - -package() { - install -dm755 $pkgdir/etc/init.d - install -Dm755 $srcdir/yacy $pkgdir/etc/init.d -}
\ No newline at end of file diff --git a/pcr/yacy-openrc/yacy b/pcr/yacy-openrc/yacy deleted file mode 100755 index e70ea720a..000000000 --- a/pcr/yacy-openrc/yacy +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/openrc-run - -PIDFile=/opt/yacy/.yacy/yacy.pid -User=yacy - -description="YaCy P2P Web Search" - -depend() { - need net -} - -start() { - ebegin "Starting Yacy" - start-stop-daemon --background --user "${User}" --start --pidfile "${PIDFILE}" --quiet --exec /opt/yacy/yacy start - eend $? -} - -stop() { - ebegin "Stopping Yacy" - start-stop-daemon --stop --pidfile "${PIDFILE}" --quiet --exec /opt/yacy/yacy stop - eend $? -} - -restart() { - ebegin "Reloading Yacy." - start-stop-daemon --stop --pidfile "${PIDFILE}" --quiet --exec /opt/yacy/yacy stop - start-stop-daemon --background --user "${User}" --start --pidfile "${PIDFILE}" --quiet --exec /opt/yacy/yacy start - eend $? -} diff --git a/pcr/yacy-openrc/yacy.install b/pcr/yacy-openrc/yacy.install deleted file mode 100644 index d07129617..000000000 --- a/pcr/yacy-openrc/yacy.install +++ /dev/null @@ -1,4 +0,0 @@ -post_install() { - echo " ==> /var/lib/yacy /opt/yacy needs these adjustments:" - echo " chown -R yacy:yacy /var/lib/yacy /opt/yacy" -} |