anchor.diff:      	 git clone https://github.com/fmidev/smartmet-plugin-${PLUGIN}.git && \
       	 cd smartmet-plugin-${PLUGIN} && \
   	 if [ -f smartmet-plugin-frontend.spec ]; then sed -e 's/json_spirit\/json_spirit.h/json_spirit.h/g' -i source/Plugin.cpp; fi && \
  -    	 make && make install && \
  +    	 CFLAGS="-DWITHOUT_AUTHENTICATION" make && make install && \
       	 if [ $SMARTMET_DEVEL -ne 1 ]; then strip /usr/share/smartmet/plugins/${PLUGIN}.so; rm -rf /usr/local/src/smartmet/smartmet-plugin-${PLUGIN}; fi \
         done && \
   #
  
positive.code:     make  && make install && \
      if [ $SMARTMET_DEVEL -ne 1 ]; then rm -rf /usr/local/src/smartmet/json_spirit_v4.08; fi && \
      if [ $SMARTMET_DEVEL -ne 1 ]; then rm -rf /usr/local/src/smartmet/json_spirit_v4.08.zip; fi && \
  # sparsehash
      cd /usr/local/src/smartmet && \
      git clone https://github.com/sparsehash/sparsehash.git && \
      cd sparsehash && \
      ./configure && \
      make && make install && \
      if [ $SMARTMET_DEVEL -ne 1 ]; then rm -rf /usr/local/src/smartmet/sparsehash; fi && \
  # atomic_shared_ptr
      mkdir -p /usr/local/include/jssatomic && wget -O /usr/local/include/jssatomic/atomic_shared_ptr.hpp https://bitbucket.org/anthonyw/atomic_shared_ptr/raw/7bdef03f6536f4b9118d267b68da211297cc0143/atomic_shared_ptr && \
  # ldconfig
  
negative.code:       yum clean all && \
        rm -rf /usr/include /usr/local/include /usr/local/src 
        
  COPY smartmetconf /etc/smartmet
  RUN mkdir -p /smartmet/share
  COPY wms /smartmet/share/
  COPY dali /smartmet/share/
  
  # Expose GeoServer's default port
  EXPOSE 80
  