remove sys-fs/zfs-auto-snap use upstream.
This commit is contained in:
		| @@ -1,4 +0,0 @@ | ||||
| AUX README.gentoo 684 BLAKE2B 7175ddfbb8dd5b209fa4fa5e5a3aeecac3fdd102e240f93b640f91bbf0204f9101801a94087383d7087bec08ae490e9769dfcf4f7f218d6daa4779087a8a0d23 SHA512 e77c3a573c2d4499df902b68909c186e4c80ba8b451b493c7e08e5e96ebe281933ce4b5fc11c201e33f27b14a02a35fd85270baf7ddece42a2fcbc6c3c421146 | ||||
| DIST zfs-auto-snapshot-upstream-1.2.4.zip 18484 BLAKE2B 684bb39471a61a7725fee181125745f94dcd70363cec277bf399d287830e71b2555f85f276f4309ca27eeaa4807fb2beca0f101b9bad7501c286d1687f38a9c8 SHA512 3a3e9180888d7225826770976bd6d66614d582179700d4efeb7ee3bc392cd60c81a970ff4c94204865490a0a4f47ec7c07586a6dd47590637c263666a07c53a3 | ||||
| EBUILD zfs-auto-snapshot-1.2.4-r1.ebuild 1524 BLAKE2B 97e855593ca53ad6a2f9b4ba83f79ee44e6e3a3552b7c9b7774c7cf2b177e06eb5dd0be5637792ed6b1ad8a3adee8b803017a844f33893e53b0c840f28a6a0fa SHA512 ac8cd8f74158ba08281fe082e1cbcc451321ca157a3b35bb70c4557a6b1a50373da8450b6efda7388a62380f83a4f0da7750aa4b9bc8ff586f8c3ba846ffd99f | ||||
| MISC metadata.xml 909 BLAKE2B 74eeac781ab385dfd962c316d6792c79ebdffed9084f3c7b071a13b502edb881555e4e9525a1c8c5f2fe0ca51241afbe430f7ce07fdbd4b2554c841f1837af85 SHA512 d98be1718d600b6a04af37294de1eb47e814c74ddf24d4e119d037554baf3f9b551ab43dabd1dcd70b35b65e9fb687325c04371d078757d26c07385ac72143c8 | ||||
| @@ -1,22 +0,0 @@ | ||||
| Use com.sun:auto-snapshot attribute to enable snapshots for datasets | ||||
| the syntax is: | ||||
|  | ||||
| zfs set com.sun:auto-snapshot=[true|false] | ||||
|  | ||||
| or: | ||||
|  | ||||
| zfs set com.sun:auto-snapshot:<frequent|hourly|daily|weekly|monthly>=[true|false] | ||||
|  | ||||
| for example: | ||||
|  | ||||
| # zfs set com.sun:auto-snapshot=false zroot | ||||
| Will disalbe all snapshots for zroot and all nested datasets will inherit the property. | ||||
|  | ||||
| # zfs set com.sun:auto-snapshot=true zroot/ROOT/default | ||||
| Will enable all types of snapshots for given dataset. | ||||
|  | ||||
| # zfs set com.sun:auto-snapshot:weekly=true pool/var | ||||
| Will enable only weekly snapshots for given dataset. | ||||
|  | ||||
| for details please visit: | ||||
| https://docs.oracle.com/cd/E19120-01/open.solaris/817-2271/ghzuk/index.html | ||||
| @@ -1,24 +0,0 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> | ||||
| <pkgmetadata> | ||||
| 	<maintainer type="person"> | ||||
| 		<email>gyakovlev@gentoo.org</email> | ||||
| 		<name>Georgy Yakovlev</name> | ||||
| 	</maintainer> | ||||
| 	<longdescription lang="en"> | ||||
| 		An alternative implementation of the zfs-auto-snapshot service for Linux | ||||
| 		that is compatible with zfs-linux and zfs-fuse. | ||||
|  | ||||
| 		Automatically create, rotate, and destroy periodic ZFS snapshots. This is | ||||
| 		the utility that creates the @zfs-auto-snap_frequent, @zfs-auto-snap_hourly, | ||||
| 		@zfs-auto-snap_daily, @zfs-auto-snap_weekly, and @zfs-auto-snap_monthly | ||||
| 		snapshots if it is installed. | ||||
| 	</longdescription> | ||||
| 	<use> | ||||
| 		<flag name="default-exclude">Only take snapshots if dataset has com.sun:auto-snapshot=true property set</flag> | ||||
| 	</use> | ||||
|  | ||||
| 	<upstream> | ||||
| 		<remote-id type="github">zfsonlinux/zfs-auto-snapshot</remote-id> | ||||
| 	</upstream> | ||||
| </pkgmetadata> | ||||
| @@ -1,56 +0,0 @@ | ||||
| # Copyright 1999-2019 Gentoo Authors | ||||
| # Distributed under the terms of the GNU General Public License v2 | ||||
|  | ||||
| EAPI=6 | ||||
|  | ||||
| inherit readme.gentoo-r1 | ||||
|  | ||||
| # https://github.com/zfsonlinux/zfs-auto-snapshot/archive/92db087bb019957166ee70c88c6c967e5fd28a70.zip | ||||
|  | ||||
| REV=92db087bb019957166ee70c88c6c967e5fd28a70 | ||||
| if [[ ${PV} == 9999 ]]; then | ||||
| 	inherit git-r3 | ||||
| 	EGIT_REPO_URI="https://github.com/zfsonlinux/${PN}.git" | ||||
| else | ||||
| 	MY_P="${PN}-upstream-${PV}" | ||||
| 	SRC_URI="https://github.com/zfsonlinux/${PN}/archive/${REV}.zip -> ${MY_P}.zip" | ||||
| 	KEYWORDS="~amd64 ~ppc64" | ||||
| 	S="${WORKDIR}/${PN}-${REV}" | ||||
| fi | ||||
|  | ||||
| DESCRIPTION="ZFS Automatic Snapshot Service for Linux" | ||||
| HOMEPAGE="https://github.com/zfsonlinux/zfs-auto-snapshot" | ||||
|  | ||||
| LICENSE="GPL-2+" | ||||
| SLOT="0" | ||||
| IUSE="+default-exclude" | ||||
|  | ||||
| RDEPEND="sys-fs/zfs | ||||
| 	virtual/cron" | ||||
|  | ||||
|  | ||||
| src_install() { | ||||
| 	if use default-exclude; then | ||||
| 		for cronfile in etc/"${PN}".cron.{daily,hourly,monthly,weekly}; do | ||||
| 			sed -i "s/\(^exec ${PN}\)/\1 --default-exclude/" "${cronfile}" || die | ||||
| 		done | ||||
| 		sed -i "s/\(; ${PN}\)/\1 --default-exclude/" etc/"${PN}".cron.frequent || die | ||||
| 	fi | ||||
| 	readme.gentoo_create_doc | ||||
| 	emake PREFIX="${EPREFIX}/usr" DESTDIR="${D}" install | ||||
| } | ||||
|  | ||||
| pkg_postinst() { | ||||
| 	readme.gentoo_print_elog | ||||
|  | ||||
| 	if ! use default-exclude; then | ||||
| 		ewarn "snapshots are enabled by default for ALL zfs datasets" | ||||
| 		ewarn "set com.sun:auto-snapshot=false or enable 'default-exclude' flag" | ||||
| 		elog | ||||
| 	fi | ||||
|  | ||||
| 	if has_version sys-process/fcron; then | ||||
| 		ewarn "frequent snapshot may not work if you are using fcron" | ||||
| 		ewarn "you should add frequent job to crontab manually" | ||||
| 	fi | ||||
| } | ||||
		Reference in New Issue
	
	Block a user