You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-apps/daemonize/daemonize-1.7.4.ebuild

29 lines
704 B

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/daemonize/daemonize-1.7.4.ebuild,v 1.4 2014/01/16 17:32:56 jer Exp $
EAPI=5
DESCRIPTION="Runs a command as a Unix daemon"
HOMEPAGE="http://bmc.github.com/daemonize/"
SRC_URI="http://github.com/bmc/${PN}/tarball/release-${PV} -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DOCS=( README.md CHANGELOG.md )
src_unpack() {
unpack ${A}
# Workaround commit suffix from github.
mv "${WORKDIR}"/bmc-${PN}-* "${S}" || die
}
src_prepare() {
sed -i \
-e 's:\($(CC)\) $(CFLAGS) \(.*\.o\):\1 $(LDFLAGS) \2:' \
Makefile.in || die
}