Initial commit
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
# Exclude bpm archives
|
||||
*.bpm
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
URL="https://0pointer.de/lennart/projects/nss-mdns/"
|
||||
|
||||
# Get version number from tag name
|
||||
VERSION=$(curl -s -L "$URL" | grep 'nss-mdns ' | head -n1 | grep -o -E '[0-9]{1,}\.[0-9]{1,}')
|
||||
|
||||
echo "$VERSION"
|
||||
@@ -0,0 +1,16 @@
|
||||
name: nss-mdns
|
||||
description: glibc plugin providing host name resolution via mDNS
|
||||
version: "0.10"
|
||||
revision: 1
|
||||
url: http://0pointer.de/lennart/projects/nss-mdns/
|
||||
license: LGPL2-or-later
|
||||
architecture: any
|
||||
type: source
|
||||
depends:
|
||||
- avahi
|
||||
- glibc
|
||||
downloads:
|
||||
- url: http://0pointer.de/lennart/projects/nss-mdns/nss-mdns-${BPM_PKG_VERSION}.tar.gz
|
||||
extract_to: ${BPM_SOURCE}
|
||||
extract_strip_components: 1
|
||||
checksum: 1e683c2e7c3921814706d62fbbd3e9cbf493a75fa00255e0e715508d8134fa6d
|
||||
@@ -0,0 +1,19 @@
|
||||
# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package
|
||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||
|
||||
# The build function is executed in the source directory
|
||||
# This function is used to compile the source code
|
||||
build() {
|
||||
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
|
||||
make
|
||||
}
|
||||
|
||||
# The package function is executed in the source directory
|
||||
# This function is used to move the compiled files into the output directory
|
||||
package() {
|
||||
make DESTDIR="$BPM_OUTPUT" install
|
||||
|
||||
# Install package license
|
||||
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/nss-mdns/LICENSE
|
||||
}
|
||||
Reference in New Issue
Block a user