Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Add autogenerated files to build UtilLinux
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarthur committed Oct 21, 2018
1 parent 2457047 commit be6a061
Show file tree
Hide file tree
Showing 5 changed files with 205 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
products/
downloads/
build/
26 changes: 26 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
language: julia
os:
- linux
julia:
- 1.0
notifications:
email: false
git:
depth: 99999999
cache:
timeout: 1000
directories:
- downloads
env:
global:
- BINARYBUILDER_DOWNLOADS_CACHE=downloads
- BINARYBUILDER_AUTOMATIC_APPLE=false
sudo: required

# Before anything else, get the latest versions of things
before_script:
- julia -e 'using Pkg; pkg"add BinaryProvider"; pkg"add BinaryBuilder#master"; Pkg.build()'

script:
- julia build_tarballs.jl

18 changes: 18 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# UtilLinux builder

This repository builds binary artifacts for the UtilLinux project.
This repository has a default .travis.yml file that can be used to build
binary artifacts on Travis CI. You will however need to setup the release
upload manually. See https://docs.travis-ci.com/user/deployment/releases/.

If you don't wish to use travis, you can use the build_tarballs.jl
file manually and upload the resulting artifacts to a hosting provider
of your choice.
148 changes: 148 additions & 0 deletions build_tarballs.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
# Note that this script can accept some limited command-line arguments, run
# `julia build_tarballs.jl --help` to see a usage message.
using BinaryBuilder

name = "UtilLinux"
version = v"2.32.0"

# Collection of sources required to build UtilLinux
sources = [
"https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.32/util-linux-2.32.tar.gz" =>
"ce43afee3182f1bddb0be83f68bd378770efb9b6fdd8f464333ff8e07903db56",

]

# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir/util-linux-2.32
./configure --prefix=$prefix --host=$target
make
make install
"""

# These are the platforms we will build for by default, unless further
# platforms are passed in on the command line
platforms = [
Linux(:i686, libc=:glibc),
Linux(:x86_64, libc=:glibc),
Linux(:aarch64, libc=:glibc),
Linux(:armv7l, libc=:glibc, call_abi=:eabihf),
Linux(:powerpc64le, libc=:glibc),
Linux(:i686, libc=:musl),
Linux(:x86_64, libc=:musl),
Linux(:aarch64, libc=:musl),
Linux(:armv7l, libc=:musl, call_abi=:eabihf)
]

# The products that we will ensure are always built
products(prefix) = [
ExecutableProduct(prefix, "chmem", :chmem),
ExecutableProduct(prefix, "rfkill", :rfkill),
ExecutableProduct(prefix, "fincore", :fincore),
ExecutableProduct(prefix, "lslogins", :lslogins),
ExecutableProduct(prefix, "fsfreeze", :fsfreeze),
LibraryProduct(prefix, "libmount", :libmount),
ExecutableProduct(prefix, "lsns", :lsns),
ExecutableProduct(prefix, "losetup", :losetup),
ExecutableProduct(prefix, "fdisk", :fdisk),
ExecutableProduct(prefix, "mesg", :mesg),
ExecutableProduct(prefix, "switch_root", :switch_root),
ExecutableProduct(prefix, "lscpu", :lscpu),
ExecutableProduct(prefix, "utmpdump", :utmpdump),
ExecutableProduct(prefix, "partx", :partx),
ExecutableProduct(prefix, "col", :col),
ExecutableProduct(prefix, "swaplabel", :swaplabel),
ExecutableProduct(prefix, "swapoff", :swapoff),
ExecutableProduct(prefix, "whereis", :whereis),
ExecutableProduct(prefix, "uuidgen", :uuidgen),
ExecutableProduct(prefix, "ldattach", :ldattach),
ExecutableProduct(prefix, "mkfs", :mkfs_bfs),
ExecutableProduct(prefix, "renice", :renice),
ExecutableProduct(prefix, "addpart", :addpart),
ExecutableProduct(prefix, "mount", :mount),
ExecutableProduct(prefix, "mkfs", :mkfs),
ExecutableProduct(prefix, "findfs", :findfs),
ExecutableProduct(prefix, "hwclock", :hwclock),
ExecutableProduct(prefix, "findmnt", :findmnt),
ExecutableProduct(prefix, "ionice", :ionice),
ExecutableProduct(prefix, "blkdiscard", :blkdiscard),
ExecutableProduct(prefix, "kill", :kill),
ExecutableProduct(prefix, "fallocate", :fallocate),
ExecutableProduct(prefix, "resizepart", :resizepart),
ExecutableProduct(prefix, "sulogin", :sulogin),
ExecutableProduct(prefix, "fsck", :fsck),
ExecutableProduct(prefix, "lslocks", :lslocks),
ExecutableProduct(prefix, "colcrt", :colcrt),
ExecutableProduct(prefix, "blkid", :blkid),
ExecutableProduct(prefix, "uuidd", :uuidd),
ExecutableProduct(prefix, "hexdump", :hexdump),
ExecutableProduct(prefix, "rev", :rev),
ExecutableProduct(prefix, "delpart", :delpart),
ExecutableProduct(prefix, "rename", :rename),
ExecutableProduct(prefix, "taskset", :taskset),
ExecutableProduct(prefix, "pivot_root", :pivot_root),
ExecutableProduct(prefix, "lsblk", :lsblk),
LibraryProduct(prefix, "libblkid", :libblkid),
ExecutableProduct(prefix, "script", :script),
ExecutableProduct(prefix, "chcpu", :chcpu),
LibraryProduct(prefix, "libsmartcols", :libsmartcols),
LibraryProduct(prefix, "libuuid", :libuuid),
ExecutableProduct(prefix, "dmesg", :dmesg),
ExecutableProduct(prefix, "swapon", :swapon),
ExecutableProduct(prefix, "rtcwake", :rtcwake),
ExecutableProduct(prefix, "isosize", :isosize),
ExecutableProduct(prefix, "getopt", :getopt),
ExecutableProduct(prefix, "wall", :wall),
ExecutableProduct(prefix, "ipcrm", :ipcrm),
ExecutableProduct(prefix, "fdformat", :fdformat),
ExecutableProduct(prefix, "mountpoint", :mountpoint),
ExecutableProduct(prefix, "nologin", :nologin),
ExecutableProduct(prefix, "ipcmk", :ipcmk),
ExecutableProduct(prefix, "blkzone", :blkzone),
ExecutableProduct(prefix, "blockdev", :blockdev),
ExecutableProduct(prefix, "setarch", :setarch),
ExecutableProduct(prefix, "nsenter", :nsenter),
ExecutableProduct(prefix, "setsid", :setsid),
ExecutableProduct(prefix, "flock", :flock),
ExecutableProduct(prefix, "raw", :raw),
ExecutableProduct(prefix, "ctrlaltdel", :ctrlaltdel),
ExecutableProduct(prefix, "zramctl", :zramctl),
ExecutableProduct(prefix, "lsmem", :lsmem),
ExecutableProduct(prefix, "cal", :cal),
ExecutableProduct(prefix, "umount", :umount),
ExecutableProduct(prefix, "mcookie", :mcookie),
ExecutableProduct(prefix, "mkswap", :mkswap),
ExecutableProduct(prefix, "sfdisk", :sfdisk),
ExecutableProduct(prefix, "column", :column),
ExecutableProduct(prefix, "eject", :eject),
ExecutableProduct(prefix, "scriptreplay", :scriptreplay),
ExecutableProduct(prefix, "fstrim", :fstrim),
ExecutableProduct(prefix, "readprofile", :readprofile),
ExecutableProduct(prefix, "chrt", :chrt),
ExecutableProduct(prefix, "agetty", :agetty),
ExecutableProduct(prefix, "prlimit", :prlimit),
ExecutableProduct(prefix, "namei", :namei),
ExecutableProduct(prefix, "unshare", :unshare),
ExecutableProduct(prefix, "mkfs", :mkfs_minix),
ExecutableProduct(prefix, "wipefs", :wipefs),
ExecutableProduct(prefix, "ipcs", :ipcs),
ExecutableProduct(prefix, "uuidparse", :uuidparse),
ExecutableProduct(prefix, "last", :last),
ExecutableProduct(prefix, "colrm", :colrm),
ExecutableProduct(prefix, "look", :look),
ExecutableProduct(prefix, "fsck", :fsck_minix),
ExecutableProduct(prefix, "wdctl", :wdctl),
ExecutableProduct(prefix, "logger", :logger),
ExecutableProduct(prefix, "lsipc", :lsipc),
LibraryProduct(prefix, "libfdisk", :libfdisk)
]

# Dependencies that must be installed before this package can be built
dependencies = [

]

# Build the tarballs, and possibly a `build.jl` as well.
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies)

0 comments on commit be6a061

Please sign in to comment.