Do not ship mime.types, use misc/mime-support instead
PR: ports/81083 Submitted by: maintainer
This commit is contained in:
parent
b5b4c277c4
commit
4fbc1c8f3c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=135405
4 changed files with 10 additions and 90 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= web2ldap
|
||||
PORTVERSION= 0.15.10
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= http://www.web2ldap.de/download/ \
|
||||
http://www.tricknology.org/ports/
|
||||
|
@ -14,19 +15,25 @@ MASTER_SITES= http://www.web2ldap.de/download/ \
|
|||
MAINTAINER= bsam@ipt.ru
|
||||
COMMENT= Python-based WWW gateway to LDAP servers
|
||||
|
||||
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_ldap.so:${PORTSDIR}/net/py-ldap2
|
||||
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_ldap.so:${PORTSDIR}/net/py-ldap2 \
|
||||
${LOCALBASE}/etc/mime.types:${PORTSDIR}/misc/mime-support
|
||||
|
||||
NO_BUILD= yes
|
||||
USE_PYTHON= yes
|
||||
USE_REINPLACE= yes
|
||||
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
||||
${WRKSRC}/etc/web2ldap/web2ldapcnf/standalone.py
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${PREFIX}/${PORTNAME}
|
||||
@${RM} -f ${WRKSRC}/fcgi/web2ldap.py.orig
|
||||
@${RM} -f ${WRKSRC}/scgi/web2ldap.py.orig
|
||||
@${RM} -f ${WRKSRC}/etc/web2ldap/web2ldapcnf/standalone.py.orig
|
||||
@${RM} -f ${WRKSRC}/etc/mime.types.orig
|
||||
@${RM} -f ${WRKSRC}/etc/web2ldap/web2ldapcnf/standalone.py.bak
|
||||
@${RM} -f ${WRKSRC}/sbin/compile.py.orig
|
||||
@${RM} -f ${WRKSRC}/sbin/web2ldap.py.orig
|
||||
@(cd ${WRKSRC} && ${LOCALBASE}/bin/python ./sbin/compile.py)
|
||||
|
|
|
@ -1,86 +0,0 @@
|
|||
*** /dev/null Sat Jul 22 02:21:51 2000
|
||||
--- etc/mime.types Sat Jul 22 02:24:24 2000
|
||||
***************
|
||||
*** 0 ****
|
||||
--- 1,81 ----
|
||||
+ #
|
||||
+ # sample mime.types
|
||||
+ #
|
||||
+
|
||||
+ application/andrew-inset ez
|
||||
+ application/excel xls
|
||||
+ application/octet-stream bin
|
||||
+ application/oda oda
|
||||
+ application/pdf pdf
|
||||
+ application/pgp pgp
|
||||
+ application/postscript ps PS eps
|
||||
+ application/rtf rtf
|
||||
+ application/x-arj-compressed arj
|
||||
+ application/x-bcpio bcpio
|
||||
+ application/x-chess-pgn pgn
|
||||
+ application/x-cpio cpio
|
||||
+ application/x-csh csh
|
||||
+ application/x-debian-package deb
|
||||
+ application/x-msdos-program com exe bat
|
||||
+ application/x-dvi dvi
|
||||
+ application/x-gtar gtar
|
||||
+ application/x-gunzip gz
|
||||
+ application/x-hdf hdf
|
||||
+ application/x-latex latex
|
||||
+ application/x-mif mif
|
||||
+ application/x-netcdf cdf nc
|
||||
+ application/x-perl pl pm
|
||||
+ application/x-rar-compressed rar
|
||||
+ application/x-sh sh
|
||||
+ application/x-shar shar
|
||||
+ application/x-sv4cpio sv4cpio
|
||||
+ application/x-sv4crc sv4crc
|
||||
+ application/x-tar tar
|
||||
+ application/x-tar-gz tgz tar.gz
|
||||
+ application/x-tcl tcl
|
||||
+ application/x-tex tex
|
||||
+ application/x-texinfo texi texinfo
|
||||
+ application/x-troff t tr roff
|
||||
+ application/x-troff-man man
|
||||
+ application/x-troff-me me
|
||||
+ application/x-troff-ms ms
|
||||
+ application/x-ustar ustar
|
||||
+ application/x-wais-source src
|
||||
+ application/x-zip-compressed zip
|
||||
+
|
||||
+ audio/basic snd
|
||||
+ audio/midi mid midi
|
||||
+ audio/ulaw au
|
||||
+ audio/x-aiff aif aifc aiff
|
||||
+ audio/x-wav wav
|
||||
+
|
||||
+ image/gif gif
|
||||
+ image/ief ief
|
||||
+ image/jpeg jpe jpeg jpg
|
||||
+ image/png png
|
||||
+ image/tiff tif tiff
|
||||
+ image/x-cmu-raster ras
|
||||
+ image/x-portable-anymap pnm
|
||||
+ image/x-portable-bitmap pbm
|
||||
+ image/x-portable-graymap pgm
|
||||
+ image/x-portable-pixmap ppm
|
||||
+ image/x-rgb rgb
|
||||
+ image/x-xbitmap xbm
|
||||
+ image/x-xpixmap xpm
|
||||
+ image/x-xwindowdump xwd
|
||||
+
|
||||
+ text/html html htm
|
||||
+ text/plain asc txt
|
||||
+ text/richtext rtx
|
||||
+ text/tab-separated-values tsv
|
||||
+ text/x-setext etx
|
||||
+
|
||||
+ video/dl dl
|
||||
+ video/fli fli
|
||||
+ video/gl gl
|
||||
+ video/mpeg mp2 mpe mpeg mpg
|
||||
+ video/quicktime mov qt
|
||||
+ video/x-msvideo avi
|
||||
+ video/x-sgi-movie movie
|
||||
+
|
||||
+ x-world/x-vrml vrm vrml wrl
|
|
@ -11,5 +11,5 @@
|
|||
document_root = os.path.join(web2ldapcnf.web2ldap_dir,'htdocs')
|
||||
|
||||
# Path name of mime.types file
|
||||
! mime_types = '/usr/local/web2ldap/etc/mime.types'
|
||||
! mime_types = '%%LOCALBASE%%/etc/mime.types'
|
||||
|
||||
|
|
|
@ -47,7 +47,6 @@ web2ldap/htdocs/compability.html
|
|||
web2ldap/etc/httpd/sample-mod_fastcgi.conf
|
||||
web2ldap/etc/httpd/sample-mod_scgi.conf
|
||||
web2ldap/etc/init.d/web2ldap
|
||||
web2ldap/etc/mime.types
|
||||
web2ldap/etc/web2ldap/web2ldapcnf/plugins/samba.py
|
||||
web2ldap/etc/web2ldap/web2ldapcnf/plugins/msperson.py
|
||||
web2ldap/etc/web2ldap/web2ldapcnf/plugins/edirectory.py
|
||||
|
|
Loading…
Reference in a new issue