-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add libaio and xfsdump utility (requirements for xfstests)
libaio (asynchronous I/O library) is needed to compile xfstests, and xfsdump is called pretty frequently in the tests. Snippets from the manpages: The libaio library defines a new set of I/O operations which can significantly reduce the time an application spends waiting at I/O. The new functions allow a program to initiate one or more I/O operations and then immediately resume normal work while the I/O operations are executed in parallel. xfsdump backs up files and their attributes in a filesystem. The files are dumped to storage media, a regular file, or standard output. Options allow the operator to have all files dumped, just files that have changed since a previous dump, or just files contained in a list of pathnames.
- Loading branch information
Showing
2 changed files
with
187 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
#!/usr/bin/env beesh | ||
|
||
# BEE_VERSION libaio-0.3.110-0 | ||
|
||
## this file was created by bee init and should be executed to build a | ||
## bee-package. (Additional hints are located at the end of this file.) | ||
|
||
############################################################################### | ||
## The source URL(s) define the location of the sources that will be | ||
## downloaded. Version variables may be used to simplify reuse of this bee-file. | ||
|
||
SRCURL[0]="https://releases.pagure.org/libaio/libaio-${PKGVERSION}.tar.gz" | ||
|
||
############################################################################### | ||
## Add URLs/pathes to patch files to the PATCHURL array. | ||
## The sources will be patched in the order of the array. | ||
|
||
# PATCHURL+=() | ||
|
||
############################################################################### | ||
## Add filename patterns to the EXCLUDE array of files that should not | ||
## be added to you package but may be present in the image directory. | ||
|
||
# EXCLUDE+=() | ||
|
||
############################################################################### | ||
## Uncomment the next statement, if the software may not be able to be built | ||
## outside the source directory and needs to be built inside the source | ||
## directory. | ||
|
||
# build_in_sourcedir | ||
|
||
############################################################################### | ||
## bee cannot detect buildtypes specified in subdirectories. | ||
## Sometimes packages "hide" the real sources in a subdirectory named | ||
## 'src' or 'cmake' or .. | ||
## use 'sourcesubdir_append' to specify this directory if known. | ||
|
||
# sourcesubdir_append src | ||
|
||
|
||
############################################################################### | ||
## Change the default (auto-detected) steps to | ||
## extract, patch, configure/setup, build and install the software. | ||
## Make sure the mee_install function does install everything to the | ||
## image directory "${D}" | ||
|
||
#mee_extract() { | ||
# bee_extract "${@}" | ||
#} | ||
|
||
#mee_patch() { | ||
# bee_patch "${@}" | ||
#} | ||
|
||
#mee_configure() { | ||
# bee_configure | ||
#} | ||
|
||
#mee_build() { | ||
# bee_build | ||
#} | ||
|
||
mee_install() { | ||
bee_install prefix=${D}/usr libdir=${D}/usr/lib | ||
} | ||
## by default this may be 'make install DESTDIR="${D}"' | ||
|
||
############################################################################### | ||
## | ||
## Additional hints: | ||
## | ||
## The name of this bee-file should follow the following naming convention: | ||
## pkgname-pkgversion-pkgrevision.bee | ||
## | ||
## You may remove all comments as long as SRCURL[0] is set. | ||
## | ||
## Everything in this file will be executed in a bash environment. | ||
## | ||
## Build the package by executing | ||
## './pkg-version-N.bee' or | ||
## 'beesh ./pkg-version-N.bee' | ||
## | ||
## see http://beezinga.org/ | ||
## |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
#!/usr/bin/env beesh | ||
|
||
# BEE_VERSION xfsdump-3.1.7-0 | ||
|
||
## this file was created by bee init and should be executed to build a | ||
## bee-package. (Additional hints are located at the end of this file.) | ||
|
||
############################################################################### | ||
## The source URL(s) define the location of the sources that will be | ||
## downloaded. Version variables may be used to simplify reuse of this bee-file. | ||
|
||
SRCURL[0]="https://www.kernel.org/pub/linux/utils/fs/xfs/xfsdump/xfsdump-${PKGVERSION}.tar.xz" | ||
|
||
############################################################################### | ||
## Add URLs/pathes to patch files to the PATCHURL array. | ||
## The sources will be patched in the order of the array. | ||
|
||
# PATCHURL+=() | ||
|
||
############################################################################### | ||
## Add filename patterns to the EXCLUDE array of files that should not | ||
## be added to you package but may be present in the image directory. | ||
|
||
# EXCLUDE+=() | ||
|
||
############################################################################### | ||
## Uncomment the next statement, if the software may not be able to be built | ||
## outside the source directory and needs to be built inside the source | ||
## directory. | ||
|
||
build_in_sourcedir | ||
|
||
############################################################################### | ||
## bee cannot detect buildtypes specified in subdirectories. | ||
## Sometimes packages "hide" the real sources in a subdirectory named | ||
## 'src' or 'cmake' or .. | ||
## use 'sourcesubdir_append' to specify this directory if known. | ||
|
||
# sourcesubdir_append src | ||
|
||
|
||
############################################################################### | ||
## Change the default (auto-detected) steps to | ||
## extract, patch, configure/setup, build and install the software. | ||
## Make sure the mee_install function does install everything to the | ||
## image directory "${D}" | ||
|
||
#mee_extract() { | ||
# bee_extract "${@}" | ||
#} | ||
|
||
#mee_patch() { | ||
# bee_patch "${@}" | ||
#} | ||
|
||
#mee_configure() { | ||
# bee_configure | ||
#} | ||
|
||
#mee_configure() { | ||
# bee_configure | ||
#} | ||
|
||
#mee_build() { | ||
# bee_build | ||
#} | ||
|
||
#mee_install() { | ||
# bee_install | ||
#} | ||
## by default this may be 'make install DESTDIR="${D}"' | ||
|
||
# xfsdumps' configure is *realy* obstinate in installing to /sbin if the prefix | ||
# is set to /usr. The kludge here puts it straight, so it fits in our layout again. | ||
|
||
mee_install_post() { | ||
install_post_toggle_symlink /usr/sbin/xfsdump /sbin/xfsdump | ||
install_post_toggle_symlink /usr/sbin/xfsrestore /sbin/xfsrestore | ||
} | ||
|
||
install_post_toggle_symlink() { | ||
start_cmd mv -v ${D}$2 ${D}$1 | ||
start_cmd ln -vsT $1 ${D}$2 | ||
} | ||
|
||
############################################################################### | ||
## | ||
## Additional hints: | ||
## | ||
## The name of this bee-file should follow the following naming convention: | ||
## pkgname-pkgversion-pkgrevision.bee | ||
## | ||
## You may remove all comments as long as SRCURL[0] is set. | ||
## | ||
## Everything in this file will be executed in a bash environment. | ||
## | ||
## Build the package by executing | ||
## './pkg-version-N.bee' or | ||
## 'beesh ./pkg-version-N.bee' | ||
## | ||
## see http://beezinga.org/ | ||
## |