123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- PROG= scrypt
- VER?= nosse
- SRCS= main.c
- LDADD+= -lcrypto
- WARNS?= 6
- # We have a config file for FreeBSD
- CFLAGS += -I .
- CFLAGS += -DCONFIG_H_FILE=\"config_freebsd.h\"
- # Include all possible object files containing built scrypt code.
- CLEANFILES += crypto_scrypt-ref.o
- CLEANFILES += crypto_scrypt-sse.o
- CLEANFILES += crypto_scrypt-nosse.o
- .PATH.c : lib/util
- SRCS += memlimit.c readpass.c warn.c
- CFLAGS += -I lib/util
- .PATH.c : lib/crypto
- SRCS += crypto_aesctr.c crypto_scrypt-${VER}.c sha256.c
- CFLAGS += -I lib/crypto
- .PATH.c : lib/scryptenc
- SRCS += scryptenc_cpuperf.c scryptenc.c
- CFLAGS += -I lib/scryptenc
- #======== public code ends here
- SCRYPTVERSION!=basename `pwd` | cut -f 2 -d -
- PKGNAME=scrypt-${SCRYPTVERSION}
- PKGSIGS=scrypt-sigs-${SCRYPTVERSION}
- publish-at:
- mkdir -p ${PKGNAME}
- cp -R lib ${PKGNAME}
- cp scrypt_platform.h main.c FORMAT scrypt.1 ${PKGNAME}
- echo -n '${SCRYPTVERSION}' > scrypt-version
- mkdir -p config.aux
- aclocal-1.10 -I .
- autoheader-2.62
- automake-1.10 -a -c
- autoconf-2.62
- mv Makefile.in config.h.in configure ${PKGNAME}/
- rm aclocal.m4
- mv config.aux ${PKGNAME}/
- rm scrypt-version
- tar -czf ${PKGNAME}.tgz ${PKGNAME}
- rm -rf ${PKGNAME}
- publish: publish-at
- sha256 ${PKGNAME}.tgz | \
- gpg --secret-keyring ../EC2/md/gpg.key --clearsign -u 3DD61E72 \
- > ${PKGSIGS}.asc
- .include <bsd.prog.mk>
|