summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..bb98d07
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,32 @@
+PREFIX = /var/www
+CGIBINDIR = cgi-bin
+HTDOCSDIR = htdocs/pastanoggin.com
+
+CGIDIR = ${PREFIX}/${CGIBINDIR}
+ROOTDIR = ${PREFIX}/${HTDOCSDIR}
+
+install:
+ # perl
+ install -d ${DISTDIR}${PREFIX}/usr/bin
+ install -g www -m 755 -o www /usr/bin/perl ${DESTDIR}${PREFIX}/usr/bin
+ install -d ${DISTDIR}${PREFIX}/usr/lib
+ install -g www -m 755 -o www /usr/lib/libperl.so.* \
+ ${DESTDIR}${PREFIX}/usr/lib
+ install -g www -m 755 -o www /usr/lib/libm.so.* ${DESTDIR}${PREFIX}/usr/lib
+ install -g www -m 755 -o www /usr/lib/libc.so.* ${DESTDIR}${PREFIX}/usr/lib
+ install -d ${DISTDIR}${PREFIX}/usr/libexec
+ install -g www -m 755 -o www /usr/libexec/ld.so \
+ ${DESTDIR}${PREFIX}/usr/libexec
+ install -d ${DISTDIR}${PREFIX}/usr/libdata/perl5
+ # cgi
+ install -d ${DESTDIR}${CGIDIR}
+ install -g www -m 0555 -o www perl.cgi ${DESTDIR}${CGIDIR}
+ # documents
+ install -d ${DESTDIR}${ROOTDIR}/docs
+ install -g www -m 0555 -o www docs/* ${DESTDIR}${ROOTDIR}/docs
+ # static files
+ install -d ${DESTDIR}${ROOTDIR}/static
+ install -g www -m 0555 -o www static/* ${DESTDIR}${ROOTDIR}/static
+
+uninstall:
+ rm -f ${DESTDIR}${PREFIX}/cgi-bin/perl.cgi