source: app-admin/wsusoffline/wsusoffline-10.9.1.ebuild @ 410155c

Revision 410155c, 1.0 KB checked in by Mario Fetka <mario.fetka@…>, 4 years ago (diff)

Bump

Package-Manager: Portage-2.3.3, Repoman-2.3.1
RepoMan?-Options: --force

  • Property mode set to 100644
Line 
1# Copyright 1999-2017 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2
3# $Header: $
4
5EAPI=5
6
7inherit eutils user versionator
8
9MY_PV=$(replace_all_version_separators ''  )
10
11DESCRIPTION="Update Microsoft Windows and Office without an Internet connection"
12HOMEPAGE="http://www.wsusoffline.net/"
13SRC_URI="http://download.wsusoffline.net/wsusoffline${MY_PV}.zip"
14LICENSE="GPL-3+"
15SLOT="0"
16
17KEYWORDS="~x86 ~amd64 ~arm"
18IUSE=""
19
20RESTRICT="strip"
21
22DEPEND="app-text/xmlstarlet
23        net-misc/wget
24        app-arch/cabextract
25        app-crypt/md5deep"
26
27RDEPEND="${DEPEND}"
28
29S=${WORKDIR}/${PN}
30
31pkg_setup() {
32        enewgroup wsus
33        enewuser wsus -1 /bin/bash /opt/wsusoffline wsus
34}
35
36#src_configure() {
37#}
38
39#src_compile() {
40#}
41
42src_install() {
43        insinto /opt/wsusoffline
44        doins -r *
45
46        newbin "${FILESDIR}"/wsusoffline.bin wsusoffline
47        newconfd "${FILESDIR}"/wsusoffline.confd wsusoffline
48        insinto /etc/cron.d
49        newins "${FILESDIR}"/wsusoffline.cron wsusoffline
50        fowners wsus:wsus /opt/wsusoffline
51        fperms +x /opt/wsusoffline/sh/DownloadUpdates.sh
52}
Note: See TracBrowser for help on using the repository browser.