]> git.armaanb.net Git - asd-repo.git/blobdiff - junk/checkpassword/build
Create junk repo
[asd-repo.git] / junk / checkpassword / build
diff --git a/junk/checkpassword/build b/junk/checkpassword/build
new file mode 100755 (executable)
index 0000000..762ba5c
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh -e
+
+sed -i "s:extern int errno;:#include <errno.h>:" error.h 
+sed -i -e 's/gcc/${CC}/g' find-systype.sh
+
+printf '${CC} ${CFLAGS} -s -lcrypt' > conf-cc
+printf '${CC} ${CFLAGS} -s -lcrypt' > conf-ld
+
+make
+install -Dm755 checkpassword "$1/usr/bin/checkpassword"