linamh/app-admin/wsusoffline/wsusoffline-8.8.ebuild
Mario Fetka 45e4af2851 Bump
Package-Manager: portage-2.2.0_alpha188
RepoMan-Options: --force
2013-11-20 19:38:29 +01:00

53 lines
1.0 KiB
Bash

# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit eutils versionator
MY_PV=$(replace_all_version_separators '' )
DESCRIPTION="Update Microsoft Windows and Office without an Internet connection"
HOMEPAGE="http://foo.example.org/"
SRC_URI="http://download.wsusoffline.net/wsusoffline${MY_PV}.zip"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~x86 ~amd64 ~arm"
IUSE=""
RESTRICT="strip"
DEPEND="app-text/xmlstarlet
net-misc/wget
app-arch/cabextract
app-crypt/md5deep"
RDEPEND="${DEPEND}"
S=${WORKDIR}/${PN}
pkg_setup() {
enewgroup wsus
enewuser wsus -1 /bin/bash /opt/wsusoffline wsus
}
#src_configure() {
#}
#src_compile() {
#}
src_install() {
insinto /opt/wsusoffline
doins -r *
newbin "${FILESDIR}"/wsusoffline.bin wsusoffline
newconfd "${FILESDIR}"/wsusoffline.confd wsusoffline
insinto /etc/cron.d
newins "${FILESDIR}"/wsusoffline.cron wsusoffline
fowners wsus:wsus /opt/wsusoffline
fperms +x /opt/wsusoffline/sh/DownloadUpdates.sh
}