Created
March 19, 2015 01:32
-
-
Save prologic/207635478ea8c399965b to your computer and use it in GitHub Desktop.
created by github.com/tr3buchet/gister
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pwd | |
/usr/ports/core/btrfs-progs/work/src/btrfs-progs-v3.18.2 | |
# cat ../../../Pkgfile | |
# Description: Filesystem utilities for btrfs | |
# URL: http://btrfs.wiki.kernel.org | |
# Maintainer: CRUX System Team, core-ports at crux dot nu | |
# Depends on: util-linux e2fsprogs lzo | |
name=btrfs-progs | |
version=3.18.2 | |
release=1 | |
source=(https://www.kernel.org/pub/linux/kernel/people/kdave/btrfs-progs/btrfs-progs-v$version.tar.xz \ | |
$name-man-v$version.tar.xz) | |
build() { | |
cd $name-v$version | |
make CFLAGS="$CFLAGS" | |
make prefix=/usr bindir=/sbin mandir=/usr/man DESTDIR=$PKG install | |
} | |
# egrep BTRFS_BUILD_VERSION * -r | |
btrfs.c: printf("%s\n", BTRFS_BUILD_VERSION); | |
btrfs-debug-tree.c: fprintf(stderr, "%s\n", BTRFS_BUILD_VERSION); | |
btrfs-debug-tree.c: printf("%s\n", BTRFS_BUILD_VERSION); | |
btrfs-select-super.c: fprintf(stderr, "%s\n", BTRFS_BUILD_VERSION); | |
btrfs-show-super.c: fprintf(stderr, "%s\n", BTRFS_BUILD_VERSION); | |
btrfs-zero-log.c: fprintf(stderr, "%s\n", BTRFS_BUILD_VERSION); | |
cmds-check.c: printf("%s\n", BTRFS_BUILD_VERSION); | |
cmds-filesystem.c: printf("%s\n", BTRFS_BUILD_VERSION); | |
cmds-filesystem.c: printf("%s\n", BTRFS_BUILD_VERSION); | |
Documentation/Makefile:BTRFS_VERSION = $(shell sed -n 's/.*BTRFS_BUILD_VERSION "Btrfs \(.*\)"/\1/p'\ | |
mkfs.c: fprintf(stderr, "%s\n", BTRFS_BUILD_VERSION); | |
mkfs.c: fprintf(stderr, "mkfs.btrfs, part of %s\n", BTRFS_BUILD_VERSION); | |
mkfs.c: printf("%s\n", BTRFS_BUILD_VERSION); | |
version.h:#define BTRFS_BUILD_VERSION "Btrfs v3.18.2" | |
version.sh:echo "#define BTRFS_BUILD_VERSION \"Btrfs $v\"" >> .build-version.h |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment