1*4882a593SmuzhiyunSUMMARY = "This script upgrades packages automatically and unattended."
2*4882a593SmuzhiyunDESCRIPTION = "The purpose of unattended-upgrades is to keep the computer current with the latest security (and other) updates automatically."
3*4882a593SmuzhiyunHOMEPAGE = "https://wiki.debian.org/UnattendedUpgrades"
4*4882a593SmuzhiyunLICENSE = "GPL-2.0-only"
5*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
6*4882a593Smuzhiyun                    file://debian/copyright;md5=62b5f2ac0ede901fb245eefbe54c181f"
7*4882a593Smuzhiyun
8*4882a593SmuzhiyunSRC_URI = "git://github.com/mvo5/unattended-upgrades.git;protocol=https;branch=master \
9*4882a593Smuzhiyun           file://0001-unattended-upgrade-Remove-distro_info-usage-to-check.patch \
10*4882a593Smuzhiyun           file://0001-setup.py-Disable-autodection-of-modules.patch \
11*4882a593Smuzhiyun           "
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunSRCREV = "c6db6fad26a2b83ba301b52ff5dee98cef7558ca"
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunS = "${WORKDIR}/git"
16*4882a593Smuzhiyun
17*4882a593Smuzhiyuninherit setuptools3_legacy
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunDEPENDS += "apt intltool-native python3-distutils-extra-native"
20*4882a593SmuzhiyunRDEPENDS:${PN} += "apt lsb-release python3-apt python3-core python3-datetime python3-email python3-fcntl python3-io python3-logging python3-stringold python3-syslog"
21*4882a593Smuzhiyun
22*4882a593Smuzhiyundo_configure:prepend () {
23*4882a593Smuzhiyun	install -Dm 0644 ${S}/data/50unattended-upgrades.Debian ${S}/data/50unattended-upgrades
24*4882a593Smuzhiyun}
25*4882a593Smuzhiyun
26*4882a593Smuzhiyundo_install:append () {
27*4882a593Smuzhiyun	# fix bad installation path's
28*4882a593Smuzhiyun	mv -v ${D}/usr/usr/share/* ${D}/usr/share/
29*4882a593Smuzhiyun	rm -r ${D}/usr/usr
30*4882a593Smuzhiyun}
31*4882a593Smuzhiyun
32*4882a593SmuzhiyunFILES:${PN} = "${bindir} ${exec_prefix}/etc ${libdir} ${datadir} ${nonarch_libdir}"
33