Anonymous avatar Anonymous committed 5f5bb34

Fix up pkgbuild some

Comments (0)

Files changed (2)

 ADDRB="urwid, pyparted, python-pexpect, psutil"
 optdepends=(	"gparted: Not yet in 64bit repo"
 		"vasm-legacy: The tried and true bash vasm") # Manually mirror to slack-suggests
-backup("etc/sudoers.d/vasm")
+backup=("etc/sudoers.d/vasm")
 changelog="slack-changes"
-#source=("https://bitbucket.org/m0e_lnx/vasm/get/$pkgver.tar.bz2")
-source=("https://bitbucket.org/pierce_jason/vasm/get/$pkgver.tar.bz2"
+_hgrepo="pierce_jason"
+#_hgrepo="m0e_lnx"
+source=("https://bitbucket.org/$_hgrepo/vasm/get/$pkgver.tar.bz2"
 	"sudoers.d-vasm"
 	"vasm.desktop"
 	"vasm-tui.desktop")
-#	"slack-suggests")
-
+sha256sums=('ed8f036dadec3d9b1d2d1e58b316c05dd46e3b410817b449bccc1556b25fb9de'
+            'f3cf56b9a9e8578176ca64d5c69e2d8ddec4aa24a9278167a85d9bf915f21bab'
+            'cd5f2fd8ea9f73680683bdb1cae9857a2c02697efcdb54be8848a53d01ac94c1'
+            '5615e41705b84bf180ed95d6308db8b7a818ea153302bbcf3be12839b698e11a')
+build() {
+	python -m compileall .; # Pre-generate .pyc files.
+}
 package() {
-	cd "$srcdir/$pkgname-$pkgver";
+	cd $srcdir/$_hgrepo-$pkgname-$pkgver;
 	
-	mkdir -p $pkgdir/usr/share/$pkgname-$pkgver;
-	python -m compileall .; # Pre-generate .pyc files.
+	mkdir -p $pkgdir/usr/share/$pkgname-$pkgver;	
 	cp *.{py,pyc} $pkgdir/usr/share/$pkgname-$pkgver/;
 	cp -a modules $pkgdir/usr/share/$pkgname-$pkgver/
 	
-	install -d -m700 $pkgdir/etc/sudoers.d
-	install -m400 sudoers.d-vasm $pkgdir/etc/sudoers.d/
-	
 	mkdir -p $pkgdir/usr/bin;
 	install -m755 vasm $pkgdir/usr/bin/;
 	
+	mkdir -p $pkgdir/usr/doc/$pkgname-$pkgver;
+	cp *.txt $pkgdir/usr/doc/$pkgname-$pkgver;
+	cp -a AUTHORS COPYING ChangeLog Credits MANIFEST README TODO \
+		$pkgdir/usr/doc/$pkgname-$pkgver/ 2>/dev/null || true;
+
+
+	cd $srcdir;
+	install -d -m700 $pkgdir/etc/sudoers.d
+	install -m400 sudoers.d-vasm $pkgdir/etc/sudoers.d/
+	
 	mkdir -p $pkgdir/usr/share/applications;
 	cp *.desktop $pkgdir/usr/share/applications/;
-	
-	mkdir -p $pkgdir/usr/doc/$pkgname-$pkgver;
-	cp *.txt $pkgdir/usr/doc/$pkgname-$pkgver;
-	cp -a AUTHORS COPYING ChangeLog Credits MANIFEST README TODO $pkgdir/usr/doc/$pkgname-$pkgver/;
-#	for doc in AUTHORS COPYING ChangeLog Credits MANIFEST README TODO; do
-#		if [ -f $doc ]; then
-#			cp $doc $pkgdir/usr/doc/$pkgname-$pkgver/;
-#		fi;
-#	done;
 }
 
 cat > /dev/null << 'EndofComment' 

build/slack-changes

+* 7.0-noarch-3vl70
+	- Remove etc/sudoers for real this time. Forgot to do the rm on 2vl70.
+	- (* Note prior changes *)
+* 7.0-noarch-2vl70
+	- Fix sudo misconfiguration leading to local privilege escalation. Sudo access to vasm changed from group "users" to group "sys".
+	- Removed etc/sudoers file from package.
+	- Moved sudo configs related to this package into etc/sudoers.d/vasm
+	- (* Security fix *)
+	- pkg://vlconfig2
+	- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-FAKECVE
+	- http://helic.wholebean.info/~pierce.jason/sudoers-vuln.txt
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.