diff options
author | Gaming4JC <g4jc@openmailbox.org> | 2016-02-14 09:57:43 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@openmailbox.org> | 2016-02-14 09:57:43 -0500 |
commit | d9a95049828a30b035e0389a07b6dd5fd95daf34 (patch) | |
tree | deaee73887d653b0445d2a93141181efc81861f4 /pcr/firejail | |
parent | c452918513df4fec5de64b4256063b167ffa7cbd (diff) |
update firejail
Diffstat (limited to 'pcr/firejail')
-rw-r--r-- | pcr/firejail/PKGBUILD | 55 | ||||
-rw-r--r-- | pcr/firejail/PKGBUILD.sig | bin | 543 -> 543 bytes | |||
-rw-r--r-- | pcr/firejail/firejail.install | 123 |
3 files changed, 75 insertions, 103 deletions
diff --git a/pcr/firejail/PKGBUILD b/pcr/firejail/PKGBUILD index 51340d769..f90c8061e 100644 --- a/pcr/firejail/PKGBUILD +++ b/pcr/firejail/PKGBUILD @@ -2,8 +2,8 @@ # Contributor (Arch): ajs124 < aur AT ajs124 DOT de > pkgname=firejail -pkgver=0.9.36 -pkgrel=2 +pkgver=0.9.38 +pkgrel=1 pkgdesc="Linux namespaces sandbox program" arch=('i686' 'x86_64' 'armv7h') license=(GPL2) @@ -11,56 +11,13 @@ url=https://l3net.wordpress.com/projects/firejail/ source=("https://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgname-$pkgver.tar.bz2" 'PKGBUILD' 'PKGBUILD.sig' -"$pkgname.install") -install=("$pkgname.install") +'firejail.install') +install=firejail.install validpgpkeys=('CB6E213A349B8DF9E96B622AC3F4FFCF3EAE8697') # PKGBUILD Maintainer's key -sha512sums=('8b9b7f3dd071825117a45e41c1e33871bf4f7788faf27f322913079a7094e6fa4eb7a94362630664c4b441213c357531a2f9f41bd94ff06c64bc6f8a6ee68fd1' +sha512sums=('c1f5e0f56eb0fa6796f3b6eb6037aa8ae4c79b2440dfd64d5a656a775ac01c55db71c5a45d85d4ffb456d1d551038f87ad587dc822d470d41dfdc9a6f8eac9fc' 'SKIP' 'SKIP' - '8e8638616aa7b2cdfbdc2eb27ebfb7caf5ffce2d45c293554e0dcecaa4bcef7cae108953c1a0a8463bc6b6ef44633d9876a2d2d8628f3b5b8e4b2c7ccfe8b5ec') - -prepare() { - cd "${srcdir}/${pkgname}-${pkgver}" - - ## Begin Removal of non-libre program profiles. ## - rm ${srcdir}/${pkgname}-${pkgver}/etc/chromium-browser.profile - sed -i 's|install -c -m 0644 .etc/chromium-browser.profile $(DESTDIR)/$(sysconfdir)/firejail/.||' ${srcdir}/${pkgname}-${pkgver}/Makefile.in - - rm ${srcdir}/${pkgname}-${pkgver}/etc/chromium.profile - sed -i 's|install -c -m 0644 .etc/chromium.profile $(DESTDIR)/$(sysconfdir)/firejail/.||' ${srcdir}/${pkgname}-${pkgver}/Makefile.in - - rm ${srcdir}/${pkgname}-${pkgver}/etc/google-chrome.profile - sed -i 's|install -c -m 0644 .etc/google-chrome.profile $(DESTDIR)/$(sysconfdir)/firejail/.||' ${srcdir}/${pkgname}-${pkgver}/Makefile.in - - rm ${srcdir}/${pkgname}-${pkgver}/etc/google-chrome-beta.profile - sed -i 's|install -c -m 0644 .etc/google-chrome-beta.profile $(DESTDIR)/$(sysconfdir)/firejail/.||' ${srcdir}/${pkgname}-${pkgver}/Makefile.in - - rm ${srcdir}/${pkgname}-${pkgver}/etc/google-chrome-stable.profile - sed -i 's|install -c -m 0644 .etc/google-chrome-stable.profile $(DESTDIR)/$(sysconfdir)/firejail/.||' ${srcdir}/${pkgname}-${pkgver}/Makefile.in - - rm ${srcdir}/${pkgname}-${pkgver}/etc/google-chrome-unstable.profile - sed -i 's|install -c -m 0644 .etc/google-chrome-unstable.profile $(DESTDIR)/$(sysconfdir)/firejail/.||' ${srcdir}/${pkgname}-${pkgver}/Makefile.in - - rm ${srcdir}/${pkgname}-${pkgver}/etc/dropbox.profile - sed -i 's|install -c -m 0644 .etc/dropbox.profile $(DESTDIR)/$(sysconfdir)/firejail/.||' ${srcdir}/${pkgname}-${pkgver}/Makefile.in - - rm ${srcdir}/${pkgname}-${pkgver}/etc/opera.profile - sed -i 's|install -c -m 0644 .etc/opera.profile $(DESTDIR)/$(sysconfdir)/firejail/.||' ${srcdir}/${pkgname}-${pkgver}/Makefile.in - - rm ${srcdir}/${pkgname}-${pkgver}/etc/opera-beta.profile - sed -i 's|install -c -m 0644 .etc/opera-beta.profile $(DESTDIR)/$(sysconfdir)/firejail/.||' ${srcdir}/${pkgname}-${pkgver}/Makefile.in - - rm ${srcdir}/${pkgname}-${pkgver}/etc/spotify.profile - sed -i 's|install -c -m 0644 .etc/spotify.profile $(DESTDIR)/$(sysconfdir)/firejail/.||' ${srcdir}/${pkgname}-${pkgver}/Makefile.in - - rm ${srcdir}/${pkgname}-${pkgver}/etc/steam.profile - sed -i 's|install -c -m 0644 .etc/steam.profile $(DESTDIR)/$(sysconfdir)/firejail/.||' ${srcdir}/${pkgname}-${pkgver}/Makefile.in - - rm ${srcdir}/${pkgname}-${pkgver}/etc/skype.profile - sed -i 's|install -c -m 0644 .etc/skype.profile $(DESTDIR)/$(sysconfdir)/firejail/.||' ${srcdir}/${pkgname}-${pkgver}/Makefile.in - ### End Removing of non-free files ### - -} + '0b586f197dbdfe8a39874e8e752265899b487bc54a32588df850b22258f555fa2ef2e120ce365daa8ff9ba1b197470195f9393f7b9d099363c75cd766e482e26') build() { cd "${srcdir}/${pkgname}-${pkgver}" diff --git a/pcr/firejail/PKGBUILD.sig b/pcr/firejail/PKGBUILD.sig Binary files differindex f5ef45048..aef75c221 100644 --- a/pcr/firejail/PKGBUILD.sig +++ b/pcr/firejail/PKGBUILD.sig diff --git a/pcr/firejail/firejail.install b/pcr/firejail/firejail.install index eea219968..80ac5d4fc 100644 --- a/pcr/firejail/firejail.install +++ b/pcr/firejail/firejail.install @@ -1,9 +1,11 @@ pre_upgrade() { -echo "Checking 44 firejail profiles for user modification, backing up as needed..." +echo "Checking 64 firejail profiles for user modification, backing up as needed..." FilesToCheck=( '/etc/firejail/audacious.profile' '/etc/firejail/bitlbee.profile' +'/etc/firejail/chromium-browser.profile' +'/etc/firejail/chromium.profile' '/etc/firejail/clementine.profile' '/etc/firejail/conkeror.profile' '/etc/firejail/deadbeef.profile' @@ -13,6 +15,7 @@ FilesToCheck=( '/etc/firejail/disable-mgmt.inc' '/etc/firejail/disable-secret.inc' '/etc/firejail/dnscrypt-proxy.profile' +'/etc/firejail/dropbox.profile' '/etc/firejail/empathy.profile' '/etc/firejail/evince.profile' '/etc/firejail/fbreader.profile' @@ -20,24 +23,41 @@ FilesToCheck=( '/etc/firejail/firefox.profile' '/etc/firejail/generic.profile' '/etc/firejail/gnome-mplayer.profile' +'/etc/firejail/google-chrome-beta.profile' +'/etc/firejail/google-chrome.profile' +'/etc/firejail/google-chrome-stable.profile' +'/etc/firejail/google-chrome-unstable.profile' '/etc/firejail/hexchat.profile' '/etc/firejail/icecat.profile' '/etc/firejail/icedove.profile' '/etc/firejail/iceweasel.profile' +'/etc/firejail/kmail.profile' '/etc/firejail/login.users' +'/etc/firejail/mathematica.profile' +'/etc/firejail/Mathematica.profile' '/etc/firejail/midori.profile' +'/etc/firejail/mupen64plus.profile' '/etc/firejail/nolocal.net' +'/etc/firejail/opera-beta.profile' +'/etc/firejail/opera.profile' '/etc/firejail/parole.profile' '/etc/firejail/pidgin.profile' '/etc/firejail/qbittorrent.profile' '/etc/firejail/quassel.profile' '/etc/firejail/rhythmbox.profile' '/etc/firejail/rtorrent.profile' +'/etc/firejail/seamonkey-bin.profile' +'/etc/firejail/seamonkey.profile' '/etc/firejail/server.profile' +'/etc/firejail/skype.profile' +'/etc/firejail/spotify.profile' +'/etc/firejail/steam.profile' +'/etc/firejail/telegram.profile' '/etc/firejail/thunderbird.profile' '/etc/firejail/totem.profile' '/etc/firejail/transmission-gtk.profile' '/etc/firejail/transmission-qt.profile' +'/etc/firejail/uget-gtk.profile' '/etc/firejail/unbound.profile' '/etc/firejail/vlc.profile' '/etc/firejail/webserver.net' @@ -51,15 +71,18 @@ FilesToCheck=( OriginalFileHashes=( '475365b623b1f879005476ca6ea5d6e6c17f1cfaeb81bade5d99256e86eb52592abb07fefd7b25dd02ac11fcc83f9b31ba7e5bb0124225b19f44d559d5aceb9e' '272e06bda895dc0583f8ed487f3e204c581de331632ffbc48117b46d00d191cb3ab236ca9aa4602314b8f258c503c514443eb467ba94b489a22589b75d9b25ba' +'2f43037d58bdb86d37382793fbf0a44b40a6e13ddbfacf725c497e9bd35d654279cc38911e008858e76ed5cbb089fc065174b9410103828f6f2d7a4a954f50d4' +'b2b97d12b699b62c50b87a61f358d1002dc12cef7f68a9c52563be70c2cdd79333e9d09fc7768caa932dcd2cfe2f1676762f6d09fa094cfcf4560d9e9752e955' '7c57c690f0e38b2095cff19d7460c4f833efa979a303d579d16ee306184ff3c9ea94b4e2ec926958354c42cb5c47ee53674d81ae6f8adcd1279c9e905c622d1f' -'6bf30e18a4e6cf02fcb3021378a7e8fe7edc1afe4b2012fbc567003d2f2446f7c0a4fc15b4c2a04c038d65393a9add1fc1fbcdecd7011c8fc496e6af5eee155e' +'e01e35a2d237e7270c1d8c3f36162cfcefb1b5f908faa4728fa767128514cba22f46134d8091fd6f1076aa3a0caf91bd5a76be2029458a614650a186638495c8' 'd1e95c53bc19da0e644b4ebe5bd20fa5e9cc7862f2e07110d7ce4f9a45ddb679b38edfb9ff26c1ad6b0e49d359d15334995475004b2c5a1e1aeac40278bb4b2d' 'f6b7314406f0f72f5de616b1cfbe00455dc30d3524b7b6e8b247feb6b6391cf36c822ddf299db0184bc5c66ffccff58e996399de00a195e2ef0a60ea88cf26c2' -'5b8192bb3617e2f513fce21963cbb329cfc54ba855be6faee98943f632ee579191c14309018600460d128c7c6331a1cbc8b1d5ca9aaaad1c565bb264d479a70e' +'af5f11ec6475028c5c54890b9d9de9f68b816d70fa1d2e1f96f378cf38960a358acc4ea4669e5be4d345d58caa619b71e17d18b5a1f5669c6dc116a931882f02' '69a3deb638a2e9d418468e28c23553255f294010a9c1418c1adbc3e1397eea9f34b86d786efc78955965fb39bb5586ca2d727dcc6e0ac8e47994470ad8d3c984' -'14efe7280fb77093a22999739ce323e90fccdc2a43c6b1ead30d3b176decd7ca7f6ed79382c1b63e7b8a8a88f65e03198a40339a26dd6a28e68878c7afa97c66' -'b0e6b65d9e2c1be90989f0cafbded7c7ebc7a50fd22dccca2ecd16e45547e076ea4ce010e2e7156dce8796d0af6fd5cdf9067f51b9cc91ebd4c9f300f05dcc40' -'6aba29b3b68b7f96e90c28a4e31e9a4b2d00f07a9f49cb792da29531a56acb57b6d8ffade6661639ffaf0e844094647db5c3ecfcb1317095ab4f1655d511e3c6' +'a4b1b5914a2568e49bc13fa9cf7004f8540405eee937f8d282810090bdfce5993ca589902511436ea17335d0b9ceef767cc24bca16ef2ba0c5a5185a949f9376' +'d7371fffadea87c207a9876b8be11fcc4d6268d12e6e8af7f536e2512508d06a06c6147a27363dbbcab22a76d35961dde9ee283f516bb96f7e455647c1d06146' +'49d1aa3b824dec6ce9d010e258a1eab6a0850dcb1b080563c7500ca3f67648832dd2b8758d9131d54bb26e9df43f870de57e729abc2d0a0516dd92bcaf1c10df' +'43c2ed16340847121ef2adc91fcf836d46295918ffaa486eb4f3b007fb833007da1884b656bd7b13e0cad5ce6d2df16fe830c3ed7d41615800b4dbf62fde332f' '1aed5fd7a711f68e1d1522be8caee86c8f0df2799b3d5e59abea96fa4c3424d5df393b549c15eff3ffe849a9ba3a2a96f1eb41ea9a4ef003a2344df15e107f8f' '93f40b47b08eee43e02db3915ac8e1275114f754dc6b24707ad07d2007c4c9abd8a09984e4ce78fda25100908f863a4cba5d6256d227816af717510145366ed5' 'c4810f982f370f480f116eefe33bccd5f91a60f615a809b8c5e66db6c6e557f42cea07e66ddd41badad39a4e0a39cafc4fee82ad8aa61fe4fb6c6b2a3d812491' @@ -67,123 +90,115 @@ OriginalFileHashes=( '1317fbf93f5c9e37c1706e8619d2e40fbe62a3b9772476fb5f65495a48d042139fa05e8691fb6d906bf6bdacd4a7e75c58fdfdc6f58ab05c2bafbf610649acc3' 'fb6c319412a8f5c45361354508d08a020df1798cb00fa3295be0df9eebd0dd7efe59189106402a6b8761afd11dff8bc438f7ac1c7de981a5bcebd0027e428ccc' '3b3e54a9fc1e60da4082660b2f179a7667f79da1094325eb6979bf08a3f5a7dc2e54c28041363e7555f5b2eb4590810c20ec9e5914a6c1c4323a86727a01f8c9' +'7e10b01ba1ac0faa53bc145adc22f82f9365b537ef35c856f9d8f655165758c5160992cb196b8b2371e09eeb7af275ea99ef98ddb2efcabf1c46c2acd71cbf55' +'7222ca3170a9c89524f3858a0f273badc78041f657829a3ea364760c3036e39586e65f5be689a49790101e7b95390eb29fabec23de4cf51d362e3dc93c780288' +'63a7671e7716a757511beece2ac2fca0e91c4cf418e78104ae88d628504725d1b99f577b43a186c884f570aac98d59e8230d59b3c118eecf3335a7e4aa261c11' +'18b86f37a0945746a80e16a8cd7176141f7b3b9ac93f26f4edf8cb115cbc74d5181bb9373f3238dc6d760da64f4e73a8504a05876c71aa5f5f091797e65862ce' 'f0127da75a98a89ef3236310efc1afbf003e5bab30ed3f5417f157e9f29614c20da093f4805f54d967ad20079710caaf86fd3b55b33d4dfa928ae8976085322a' '81db63b03b1f950b1e7810fab38ce4fe5776f11e3036848da6298d9002b5c4683028d4fdd630db118d428fd91e5118872b5b2ccff9c82d02a966765efdb9dc17' '9a8c4d7ce893340da2d9cc8237cecf8bca2865e5552747c480a1f803072960b7aa571b2693600076ea8800b86e1d0945d8a535fffcdbe9569b3820a477b155d2' '8ded98eec8c11af8defef583227ea833beca534e5f2be48b52ec75152afddf14d78ba47442237e84eda8bb1b8361b1afecd63576f8ef6b18d50fb8c6559e8638' +'829be5c028a8f33ed5181d3cfa876e2c52c1ef560558c502a63ea81d5001e648afbbdddf0c7958bb02db9979474955c4bfc63bfc64214698df41c2ed4db7c10d' '672fa8b25ed28a07efb41fad6415c9fa96ce4bf4f4a1a6412595afb309ef6c1e67033ee256f997c32e9abe25bd6a100160ff12f2235c9be289c223547d03ca95' +'6269057d43630fdba735c0085e16834f0e3ca49c64df720f3500bfe9c407ab9fc933dca904aacee1a5afbdc3f71d1f8b81cfba62914b37dda45089965e0329a0' +'9a9a811feb9279fcb9146c28e2ae12999d41d7009280e7cb0c62d5f6dfb2efdf5b970bc0c07de5dc7653f0a05176eb821c4da06e6072c27afb52f25449048bbb' '92d90375a560f3d6c94b3cf6c2d0de06d8e76d8d40eb80ebaf85de844b323c0ec283bc9bca753b2bf301587dda5237883ccd6062f9d5e3c2e8dc7dc33476ce6a' +'86fce399a1205e90bb9b257236ea9b3a50006c03abfc990a99ad26a0e9bb9cd4cab9493781d4209f85d7b0c3cbc3124ada6ce34ffd5835751ef97df7173157bd' '0674dd401dbb0c205c94ad45ec1e92408122a6ee736e1b02fc19c75c1e30e4b278cbbbc9fef9a0b41de7d068e7eaedca231880315b85d11e9d36345d61b75d68' +'751d8f5e86257cbef867092f7cf0f9976fd40d965cfaf816533ef6f3490c0ea0e4bae78847431316ae56789931914d053b15f160ee5c9d0c5bf4124e4e1be462' +'21465de3f9c94f38cd2701c5b2a1b8b4a2287949bff7a6909ecf06b5513cf7fea0bb5af86f9c11ff0b3d92875d8c716cb50228a0d1c8f2bae3139d256d9a66d1' 'e3fabdd8bfba675b0ac4be8d9005e1bdc8d51d46178b71b6c33d9b0120eef7bde0b6750b5aae51825d3ce0e7d7da5cfbcf0f2b48db9e4f821ad182e0f29a2aad' '6a2869827fb38740ef81b93c88880f55a3fb186a82ff6e0dc4142d1fd620d3eb53f8fb36e95482afea6b7865a9cf9d2a7dea172a90792ca37a24f0af6ed39b69' 'e18d294d10a103f1da5d27a12ee867c84920dcd081f7c4daa4e46f6722962a993c3c62295daaed4c19b928d336dda56d4f2ae75dd1c3d5c5f35f878ce76060f0' '2278e3d1ec06e20c2aa7bcced46a5c01bf55f94d6e286f6433bf44177c912709e8d5e0a4c553b2a3af67dfdca6061e95eadfb648f4c606f0bd819b5fef1af03f' 'b8d8a9620a28b67752788c2af2fc0a63f479ea7424dadd9047a000f7782ae4e268ab42861c4f26707236df0c061f1e768f7d6fb580e027af10b9679a1bfb8eec' '8f184d406828be02ce3c091cb2c0c9fb71526ce9907bd6b1685c8afe7d70d1627055c5702d2ffd2e3b41d084b0aefe87ad763bf8636ff518b2db029d45be4137' -'0fa8393eaa3c0e5514e44e42ed9f8085c2aa8ddfa799e4cdd19d1004c81692dc1baa8963aa75dfbb7e268c80636711a90110f365e2f3d0769d7fdf0b6aaac65e' +'cf87271c1bbd372f55a120f2994f0b8239c9bafdb53a6227e30b8bcef2ea82690ce73b2750c562a55550b2fb63f3760f42f34d252133eed11f4eaf23d2753ead' +'cf87271c1bbd372f55a120f2994f0b8239c9bafdb53a6227e30b8bcef2ea82690ce73b2750c562a55550b2fb63f3760f42f34d252133eed11f4eaf23d2753ead' +'97ab1177d38c992aaa9927d161ad94f1cf593fac49de85d8e2afc81d7a42dc4e58b131755fe7fb12a3caf5b131b8861cad1fa4c607688d08e9f823e7c571e88b' +'d8f125bf204763b4388849d3dd13ef678d3d87b6ee6c2be69386faf80d76627b82688a30a299997c1b27ae458c40d1e40efc8a775f0ae76567929b411b9ce6e2' +'6018fb8ab8e2b9e921ad64a5e657df0c894df04ef0a340c76f825e1a388065cb6ab622c09859902897413788b63ea171789b7448a640d8b3c225b928131293e5' +'2549080cd5cd035c905adf8d07fcf40692f478dd3880e265d1d4eae3b1782f22fb411b41f8488fd888c96e6f18826263e18e6ef11e18a0ab7f3076435b927166' +'aa582cf64f7f327366174fe851cceeef031d5ccdec7f7459afefd95a25173ab42875dfd430828c41842de40923f0f931357e500d2afb6db7a75f733255768763' 'a1074b8508b16a256cc3ffc561cc4ffa8661478865c9efa86de712ee7d890c2bacad05fa2fe7913a6c7f3e04ace90b2a29724938b28cb246626d15175b3e56ca' '983f048d3627fbd22be0694f5a4dde1ff874e60206563addb0e2c52506229c36438e48ff8475fb27a388b33f3f93fc52a440e1b604e00610c799c8499cb55593' '1683412211fb3260564f1e1ab231173c811cccd51ed5052b6bbac1b9575bbbe95bebd6f4536fe320449118e80c8dd9f138e6e45704f6629bf581bedf8daf7585' '2fa037409a66280e5dd82c562b7f1b7c4048575d6f73bdde5fb62fb5c140ebcb7cb89945cfce6b0b13325426dcfaf52c1eb4805def47dd4a920ea0f8a9739cb9' -'16ac112b32941e7b0a6488e69790c286b4ed539b5c8c1b7c0ba76713b31472a260d4845a718738751c8e05a0599c57c9a882afcc7117f48e7d7d4aaaf9eb2a2f' +'f052c5eb7d7dbe65f3d3b32ecbc3acc3f74cece8b0337b1f37ece572238468f2b2660d4569747c81f973ea40d428ffca5a80ed16b3b7fd4dd1f938744f169900' +'068be18582987a76b9bfc5b2014dedc0dc4f0c8a43ba8fceb016c0858351e216b09eecf5043b71d5f38fc0e48e8011341e6faf80fcabc9492b7c9b541cb5ac4f' 'c84cc10ee40620846fc0e852e78277afcd96251857f955973036b416f57e6c2c72a8631e1377d4bcea6409129ba909895f1437a81b71a93523463686fc0daba8' 'a889749dce2d9a7f624327780696a8444112b55c22d5a2506aaa5ee52f64bd028f6cbb7f6c9b39123565e7257935acaebf8a9d98460b1d25320cfd729c493450' '28bcf7a38c8ad4e3b69e5ea6ae2b8d6058094af9ff214c918f46ad8ff1226f1b4bf3e4adaa9cd13241e6fe05559cf4d8029cd0c06f670b616465b5edb94d9a0b' 'd8bea2514a2733509081f0544dbb9ae6b65e401596a95cb5e32907517d5d1e734219e74b4ad158c730a89230d29cf77a3dff2aa0165a0e97e91bf592575d19ca' -'f966976284f051555dcb416f97189771b80f613d54165699be4443d1052a282b32d3a7c526c4523a719764d8c7dfa87fa0d9228c3c906a0c0cd68e9a2675c2e0' +'a2edefabb695b29db8f3bd767a827ae565a45153b98c741965dd1408b2e0b88c7d4978a942561f64beb872e5f5067f9927b46724eae76bc7f781b4f66b0f194c' '3eb64fda1003bcea210e021fc3aedcbf337d927edbc4f800d73d6d9ae0ac161d896973c3704070bf017adc8822e17126423a22da9b1c393278771fd07d97b734' '728019aaae0eeb1920b290ab84da8b755ec160822e36efc13722a510cc3ebd67dd7c0251e0c89aaf31eb411fc82834ae08ba763365949e6ea0edc5b2d9ed53da' ) ## Uses above arrays to check if file's original hash matches, if not the file was edited, so we save a backup and notify the user. -echo "test" [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[0]} | awk '{print $1}')" = ${OriginalFileHashes[0]} ]] || { cat "${FilesToCheck[0]}" > "${FilesToCheck[0]}.pacsave" ; echo "Backup saved: ${FilesToCheck[0]}.pacsave"; } -echo "test2" [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[1]} | awk '{print $1}')" = ${OriginalFileHashes[1]} ]] || { cat "${FilesToCheck[1]}" > "${FilesToCheck[1]}.pacsave" ; echo "Backup saved: ${FilesToCheck[1]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[2]} | awk '{print $1}')" = ${OriginalFileHashes[2]} ]] || { cat "${FilesToCheck[2]}" > "${FilesToCheck[2]}.pacsave" ; echo "Backup saved: ${FilesToCheck[2]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[3]} | awk '{print $1}')" = ${OriginalFileHashes[3]} ]] || { cat "${FilesToCheck[3]}" > "${FilesToCheck[3]}.pacsave" ; echo "Backup saved: ${FilesToCheck[3]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[4]} | awk '{print $1}')" = ${OriginalFileHashes[4]} ]] || { cat "${FilesToCheck[4]}" > "${FilesToCheck[4]}.pacsave" ; echo "Backup saved: ${FilesToCheck[4]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[5]} | awk '{print $1}')" = ${OriginalFileHashes[5]} ]] || { cat "${FilesToCheck[5]}" > "${FilesToCheck[5]}.pacsave" ; echo "Backup saved: ${FilesToCheck[5]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[6]} | awk '{print $1}')" = ${OriginalFileHashes[6]} ]] || { cat "${FilesToCheck[6]}" > "${FilesToCheck[6]}.pacsave" ; echo "Backup saved: ${FilesToCheck[6]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[7]} | awk '{print $1}')" = ${OriginalFileHashes[7]} ]] || { cat "${FilesToCheck[7]}" > "${FilesToCheck[7]}.pacsave" ; echo "Backup saved: ${FilesToCheck[7]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[8]} | awk '{print $1}')" = ${OriginalFileHashes[8]} ]] || { cat "${FilesToCheck[8]}" > "${FilesToCheck[8]}.pacsave" ; echo "Backup saved: ${FilesToCheck[8]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[9]} | awk '{print $1}')" = ${OriginalFileHashes[9]} ]] || { cat "${FilesToCheck[9]}" > "${FilesToCheck[9]}.pacsave" ; echo "Backup saved: ${FilesToCheck[9]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[10]} | awk '{print $1}')" = ${OriginalFileHashes[10]} ]] || { cat "${FilesToCheck[10]}" > "${FilesToCheck[10]}.pacsave" ; echo "Backup saved: ${FilesToCheck[10]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[11]} | awk '{print $1}')" = ${OriginalFileHashes[11]} ]] || { cat "${FilesToCheck[11]}" > "${FilesToCheck[11]}.pacsave" ; echo "Backup saved: ${FilesToCheck[11]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[12]} | awk '{print $1}')" = ${OriginalFileHashes[12]} ]] || { cat "${FilesToCheck[12]}" > "${FilesToCheck[12]}.pacsave" ; echo "Backup saved: ${FilesToCheck[12]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[13]} | awk '{print $1}')" = ${OriginalFileHashes[13]} ]] || { cat "${FilesToCheck[13]}" > "${FilesToCheck[13]}.pacsave" ; echo "Backup saved: ${FilesToCheck[13]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[14]} | awk '{print $1}')" = ${OriginalFileHashes[14]} ]] || { cat "${FilesToCheck[14]}" > "${FilesToCheck[14]}.pacsave" ; echo "Backup saved: ${FilesToCheck[14]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[15]} | awk '{print $1}')" = ${OriginalFileHashes[15]} ]] || { cat "${FilesToCheck[15]}" > "${FilesToCheck[15]}.pacsave" ; echo "Backup saved: ${FilesToCheck[15]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[16]} | awk '{print $1}')" = ${OriginalFileHashes[16]} ]] || { cat "${FilesToCheck[16]}" > "${FilesToCheck[16]}.pacsave" ; echo "Backup saved: ${FilesToCheck[16]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[17]} | awk '{print $1}')" = ${OriginalFileHashes[17]} ]] || { cat "${FilesToCheck[17]}" > "${FilesToCheck[17]}.pacsave" ; echo "Backup saved: ${FilesToCheck[17]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[18]} | awk '{print $1}')" = ${OriginalFileHashes[18]} ]] || { cat "${FilesToCheck[18]}" > "${FilesToCheck[18]}.pacsave" ; echo "Backup saved: ${FilesToCheck[18]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[19]} | awk '{print $1}')" = ${OriginalFileHashes[19]} ]] || { cat "${FilesToCheck[19]}" > "${FilesToCheck[19]}.pacsave" ; echo "Backup saved: ${FilesToCheck[19]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[20]} | awk '{print $1}')" = ${OriginalFileHashes[20]} ]] || { cat "${FilesToCheck[20]}" > "${FilesToCheck[20]}.pacsave" ; echo "Backup saved: ${FilesToCheck[20]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[21]} | awk '{print $1}')" = ${OriginalFileHashes[21]} ]] || { cat "${FilesToCheck[21]}" > "${FilesToCheck[21]}.pacsave" ; echo "Backup saved: ${FilesToCheck[21]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[22]} | awk '{print $1}')" = ${OriginalFileHashes[22]} ]] || { cat "${FilesToCheck[22]}" > "${FilesToCheck[22]}.pacsave" ; echo "Backup saved: ${FilesToCheck[22]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[23]} | awk '{print $1}')" = ${OriginalFileHashes[23]} ]] || { cat "${FilesToCheck[23]}" > "${FilesToCheck[23]}.pacsave" ; echo "Backup saved: ${FilesToCheck[23]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[24]} | awk '{print $1}')" = ${OriginalFileHashes[24]} ]] || { cat "${FilesToCheck[24]}" > "${FilesToCheck[24]}.pacsave" ; echo "Backup saved: ${FilesToCheck[24]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[25]} | awk '{print $1}')" = ${OriginalFileHashes[25]} ]] || { cat "${FilesToCheck[25]}" > "${FilesToCheck[25]}.pacsave" ; echo "Backup saved: ${FilesToCheck[25]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[26]} | awk '{print $1}')" = ${OriginalFileHashes[26]} ]] || { cat "${FilesToCheck[26]}" > "${FilesToCheck[26]}.pacsave" ; echo "Backup saved: ${FilesToCheck[26]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[27]} | awk '{print $1}')" = ${OriginalFileHashes[27]} ]] || { cat "${FilesToCheck[27]}" > "${FilesToCheck[27]}.pacsave" ; echo "Backup saved: ${FilesToCheck[27]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[28]} | awk '{print $1}')" = ${OriginalFileHashes[28]} ]] || { cat "${FilesToCheck[28]}" > "${FilesToCheck[28]}.pacsave" ; echo "Backup saved: ${FilesToCheck[28]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[29]} | awk '{print $1}')" = ${OriginalFileHashes[29]} ]] || { cat "${FilesToCheck[29]}" > "${FilesToCheck[29]}.pacsave" ; echo "Backup saved: ${FilesToCheck[29]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[30]} | awk '{print $1}')" = ${OriginalFileHashes[30]} ]] || { cat "${FilesToCheck[30]}" > "${FilesToCheck[30]}.pacsave" ; echo "Backup saved: ${FilesToCheck[30]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[31]} | awk '{print $1}')" = ${OriginalFileHashes[31]} ]] || { cat "${FilesToCheck[31]}" > "${FilesToCheck[31]}.pacsave" ; echo "Backup saved: ${FilesToCheck[31]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[32]} | awk '{print $1}')" = ${OriginalFileHashes[32]} ]] || { cat "${FilesToCheck[32]}" > "${FilesToCheck[32]}.pacsave" ; echo "Backup saved: ${FilesToCheck[32]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[33]} | awk '{print $1}')" = ${OriginalFileHashes[33]} ]] || { cat "${FilesToCheck[33]}" > "${FilesToCheck[33]}.pacsave" ; echo "Backup saved: ${FilesToCheck[33]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[34]} | awk '{print $1}')" = ${OriginalFileHashes[34]} ]] || { cat "${FilesToCheck[34]}" > "${FilesToCheck[34]}.pacsave" ; echo "Backup saved: ${FilesToCheck[34]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[35]} | awk '{print $1}')" = ${OriginalFileHashes[35]} ]] || { cat "${FilesToCheck[35]}" > "${FilesToCheck[35]}.pacsave" ; echo "Backup saved: ${FilesToCheck[35]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[36]} | awk '{print $1}')" = ${OriginalFileHashes[36]} ]] || { cat "${FilesToCheck[36]}" > "${FilesToCheck[36]}.pacsave" ; echo "Backup saved: ${FilesToCheck[36]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[37]} | awk '{print $1}')" = ${OriginalFileHashes[37]} ]] || { cat "${FilesToCheck[37]}" > "${FilesToCheck[37]}.pacsave" ; echo "Backup saved: ${FilesToCheck[37]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[38]} | awk '{print $1}')" = ${OriginalFileHashes[38]} ]] || { cat "${FilesToCheck[38]}" > "${FilesToCheck[38]}.pacsave" ; echo "Backup saved: ${FilesToCheck[38]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[39]} | awk '{print $1}')" = ${OriginalFileHashes[39]} ]] || { cat "${FilesToCheck[39]}" > "${FilesToCheck[39]}.pacsave" ; echo "Backup saved: ${FilesToCheck[39]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[40]} | awk '{print $1}')" = ${OriginalFileHashes[40]} ]] || { cat "${FilesToCheck[40]}" > "${FilesToCheck[40]}.pacsave" ; echo "Backup saved: ${FilesToCheck[40]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[41]} | awk '{print $1}')" = ${OriginalFileHashes[41]} ]] || { cat "${FilesToCheck[41]}" > "${FilesToCheck[41]}.pacsave" ; echo "Backup saved: ${FilesToCheck[41]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[42]} | awk '{print $1}')" = ${OriginalFileHashes[42]} ]] || { cat "${FilesToCheck[42]}" > "${FilesToCheck[42]}.pacsave" ; echo "Backup saved: ${FilesToCheck[42]}.pacsave"; } - [[ "$(openssl dgst -r -whirlpool ${FilesToCheck[43]} | awk '{print $1}')" = ${OriginalFileHashes[43]} ]] || { cat "${FilesToCheck[43]}" > "${FilesToCheck[43]}.pacsave" ; echo "Backup saved: ${FilesToCheck[43]}.pacsave"; } - +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[44]} | awk '{print $1}')" = ${OriginalFileHashes[44]} ]] || { cat "${FilesToCheck[44]}" > "${FilesToCheck[44]}.pacsave" ; echo "Backup saved: ${FilesToCheck[44]}.pacsave"; } +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[45]} | awk '{print $1}')" = ${OriginalFileHashes[45]} ]] || { cat "${FilesToCheck[45]}" > "${FilesToCheck[45]}.pacsave" ; echo "Backup saved: ${FilesToCheck[45]}.pacsave"; } +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[46]} | awk '{print $1}')" = ${OriginalFileHashes[46]} ]] || { cat "${FilesToCheck[46]}" > "${FilesToCheck[46]}.pacsave" ; echo "Backup saved: ${FilesToCheck[46]}.pacsave"; } +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[47]} | awk '{print $1}')" = ${OriginalFileHashes[47]} ]] || { cat "${FilesToCheck[47]}" > "${FilesToCheck[47]}.pacsave" ; echo "Backup saved: ${FilesToCheck[47]}.pacsave"; } +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[48]} | awk '{print $1}')" = ${OriginalFileHashes[48]} ]] || { cat "${FilesToCheck[48]}" > "${FilesToCheck[48]}.pacsave" ; echo "Backup saved: ${FilesToCheck[48]}.pacsave"; } +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[49]} | awk '{print $1}')" = ${OriginalFileHashes[49]} ]] || { cat "${FilesToCheck[49]}" > "${FilesToCheck[49]}.pacsave" ; echo "Backup saved: ${FilesToCheck[49]}.pacsave"; } +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[50]} | awk '{print $1}')" = ${OriginalFileHashes[50]} ]] || { cat "${FilesToCheck[50]}" > "${FilesToCheck[50]}.pacsave" ; echo "Backup saved: ${FilesToCheck[50]}.pacsave"; } +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[51]} | awk '{print $1}')" = ${OriginalFileHashes[51]} ]] || { cat "${FilesToCheck[51]}" > "${FilesToCheck[51]}.pacsave" ; echo "Backup saved: ${FilesToCheck[51]}.pacsave"; } +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[52]} | awk '{print $1}')" = ${OriginalFileHashes[52]} ]] || { cat "${FilesToCheck[52]}" > "${FilesToCheck[52]}.pacsave" ; echo "Backup saved: ${FilesToCheck[52]}.pacsave"; } +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[53]} | awk '{print $1}')" = ${OriginalFileHashes[53]} ]] || { cat "${FilesToCheck[53]}" > "${FilesToCheck[53]}.pacsave" ; echo "Backup saved: ${FilesToCheck[53]}.pacsave"; } +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[54]} | awk '{print $1}')" = ${OriginalFileHashes[54]} ]] || { cat "${FilesToCheck[54]}" > "${FilesToCheck[54]}.pacsave" ; echo "Backup saved: ${FilesToCheck[54]}.pacsave"; } +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[55]} | awk '{print $1}')" = ${OriginalFileHashes[55]} ]] || { cat "${FilesToCheck[55]}" > "${FilesToCheck[55]}.pacsave" ; echo "Backup saved: ${FilesToCheck[55]}.pacsave"; } +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[56]} | awk '{print $1}')" = ${OriginalFileHashes[56]} ]] || { cat "${FilesToCheck[56]}" > "${FilesToCheck[56]}.pacsave" ; echo "Backup saved: ${FilesToCheck[56]}.pacsave"; } +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[57]} | awk '{print $1}')" = ${OriginalFileHashes[57]} ]] || { cat "${FilesToCheck[57]}" > "${FilesToCheck[57]}.pacsave" ; echo "Backup saved: ${FilesToCheck[57]}.pacsave"; } +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[58]} | awk '{print $1}')" = ${OriginalFileHashes[58]} ]] || { cat "${FilesToCheck[58]}" > "${FilesToCheck[58]}.pacsave" ; echo "Backup saved: ${FilesToCheck[58]}.pacsave"; } +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[59]} | awk '{print $1}')" = ${OriginalFileHashes[59]} ]] || { cat "${FilesToCheck[59]}" > "${FilesToCheck[59]}.pacsave" ; echo "Backup saved: ${FilesToCheck[59]}.pacsave"; } +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[60]} | awk '{print $1}')" = ${OriginalFileHashes[60]} ]] || { cat "${FilesToCheck[60]}" > "${FilesToCheck[60]}.pacsave" ; echo "Backup saved: ${FilesToCheck[60]}.pacsave"; } +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[61]} | awk '{print $1}')" = ${OriginalFileHashes[61]} ]] || { cat "${FilesToCheck[61]}" > "${FilesToCheck[61]}.pacsave" ; echo "Backup saved: ${FilesToCheck[61]}.pacsave"; } +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[62]} | awk '{print $1}')" = ${OriginalFileHashes[62]} ]] || { cat "${FilesToCheck[62]}" > "${FilesToCheck[62]}.pacsave" ; echo "Backup saved: ${FilesToCheck[62]}.pacsave"; } +[[ "$(openssl dgst -r -whirlpool ${FilesToCheck[63]} | awk '{print $1}')" = ${OriginalFileHashes[63]} ]] || { cat "${FilesToCheck[63]}" > "${FilesToCheck[63]}.pacsave" ; echo "Backup saved: ${FilesToCheck[63]}.pacsave"; } echo "Done!" }
\ No newline at end of file |