- Ongoing process to change name to JunkbusterNG
authormorcego <morcego@users.sourceforge.net>
Fri, 22 Mar 2002 20:53:03 +0000 (20:53 +0000)
committermorcego <morcego@users.sourceforge.net>
Fri, 22 Mar 2002 20:53:03 +0000 (20:53 +0000)
- configure/configure.in: no change needed
- GNUmakefile.in:
        - TAR_ARCH = /tmp/JunkbusterNG-$(RPM_VERSION).tar.gz
        - PROGRAM    = jbng@EXEEXT@
        - rh-spec now references as junkbusterng-rh.spec
        - redhat-upload: references changed to junkbusterng-* (package names)
        - tarball-dist: references changed to JunkbusterNG-distribution-*
        - tarball-src: now JunkbusterNG-*
        - install: initscript now junkbusterng.init and junkbusterng (when
                   installed)
- junkbuster-rh.spec: renamed to junkbusterng-rh.spec
- junkbusterng.spec:
        - References to the expression ijb where changed where possible
        - New package name: junkbusterng (all in lower case, acording to
          the LSB recomendation)
        - Version changed to: 2.9.13
        - Release: 1
        - Added: junkbuster to obsoletes and conflicts (Not sure this is
          right. If it obsoletes, why conflict ? Have to check it later)
        - Summary changed: Stefan, please check and aprove it
        - Changes description to use the new name
        - Sed string was NOT changed. Have to wait to the manpage to
          change first
        - Keeping the user junkbuster for now. It will require some aditional
          changes on the script (scheduled for the next specfile release)
        - Added post entry to move the old logfile to the new log directory
        - Removing "chkconfig --add" entry (not good to have it automaticaly
          added to the startup list).
        - Added preun section to stop the service with the old name, as well
          as remove it from the startup list
        - Removed the chkconfig --del entry from the conditional block on
          the preun scriptlet (now handled on the %files section)
- junkbuster.init: renamed to junkbusterng.init
- junkbusterng.init:
        - Changed JB_BIN to jbng
        - Created JB_OBIN with the old value of JB_BIN (junkbuster), to
          be used where necessary (config dir)

Aditional notes:
- The config directory is /etc/junkbuster yet. Have to change it on the
specfile, after it is changes on the code
- The only files that got renamed on the cvs tree were the rh specfile and
the init file. Some file references got changes on the makefile and on the
rh-spec (as listed above)

GNUmakefile.in
junkbusterng-rh.spec [moved from junkbuster-rh.spec with 80% similarity]
junkbusterng.init [moved from junkbuster.init with 97% similarity]

index 7f284d1..d10e0b1 100644 (file)
@@ -1,6 +1,6 @@
 # Note:  Makefile is built automatically from Makefile.in
 #
-# $Id: GNUmakefile.in,v 1.17 2002/03/19 19:30:04 morcego Exp $
+# $Id: GNUmakefile.in,v 1.18 2002/03/21 23:00:00 swa Exp $
 #
 # Written by and Copyright (C) 2001 the SourceForge
 # IJBSWA team.  http://ijbswa.sourceforge.net
@@ -28,6 +28,9 @@
 # Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #
 # $Log: GNUmakefile.in,v $
+# Revision 1.18  2002/03/21 23:00:00  swa
+# want to autogenerate stuff.
+#
 # Revision 1.17  2002/03/19 19:30:04  morcego
 # - Fixing stylesheet checking on configure. If it is found, no further checks
 #   should be done
@@ -277,7 +280,7 @@ MAN_DEST    = @mandir@
 # Build tools
 #############################################################################
 
-PROGRAM    = junkbuster@EXEEXT@
+PROGRAM    = jbng@EXEEXT@
 CC         = @CC@
 ECHO       = echo
 GZIP_PROG  = gzip
@@ -311,7 +314,7 @@ DOSFILTER  = perl -p -e 's/\n/\r\n/'
 # Setup for make distribution rh and suse for now 
 #############################################################################
 
-TAR_ARCH = /tmp/ijbswa-$(RPM_VERSION).tar.gz
+TAR_ARCH = /tmp/JunkbusterNG-$(RPM_VERSION).tar.gz
 RPM_BASE = @RPM_BASE@
 
 #############################################################################
@@ -453,8 +456,8 @@ redhat-dist:
        TMPFILE=$$(mktemp -q /tmp/$(PROGRAM).XXXXXX); \
        if $(SED) -e 's/^\(Version:\).*/\1 $(RPM_VERSION)/g' \
              -e 's/^\(Release:\).*/\1 $(RPM_PACKAGEV)/g' \
-              junkbuster-rh.spec > $$TMPFILE ; then \
-      $(MV) -f $$TMPFILE junkbuster-rh.spec; \
+              junkbusterng-rh.spec > $$TMPFILE ; then \
+      $(MV) -f $$TMPFILE junkbusterng-rh.spec; \
    else \
       $(ECHO) "Could not set version info in specfile."; \
       exit 1;\
@@ -468,9 +471,9 @@ redhat-dist:
 # anonymously ncftps the rpms to sourceforge
 #
 redhat-upload:
-       ncftpput -u anonymous -p ijbswa-developers@lists.sourceforge.net upload.sourceforge.net /incoming $(RPM_BASE)/SRPMS/junkbuster-$(RPM_VERSION)-$(RPM_PACKAGEV).src.rpm
+       ncftpput -u anonymous -p ijbswa-developers@lists.sourceforge.net upload.sourceforge.net /incoming $(RPM_BASE)/SRPMS/junkbusterng-$(RPM_VERSION)-$(RPM_PACKAGEV).src.rpm
 # better should use `arch` here instead of ix86 to support other platforms too
-       ncftpput -u anonymous -p ijbswa-developers@lists.sourceforge.net upload.sourceforge.net /incoming $(RPM_BASE)/RPMS/*/junkbuster-$(RPM_VERSION)-$(RPM_PACKAGEV).*.rpm
+       ncftpput -u anonymous -p ijbswa-developers@lists.sourceforge.net upload.sourceforge.net /incoming $(RPM_BASE)/RPMS/*/junkbusterng-$(RPM_VERSION)-$(RPM_PACKAGEV).*.rpm
        @$(ECHO) -------------------------------------------------------
        @$(ECHO) Now goto
        @$(ECHO) http://sourceforge.net/project/admin/editpackages.php?group_id=11118
@@ -554,8 +557,8 @@ tarball-dist:
        @make clean
        make $(PROGRAM) 
 #      remove all objects and create the tarball with the binary
-       cd .. && $(RM) ijb/a.out ijb/core ijb/*.@OBJEXT@ && tar --exclude "ijb/CVS" -cvzf ../ijb-distribution-$(VERSION).tar.gz ijb/
-       chmod a+r ../../ijb-distribution-$(VERSION).tar.gz
+       cd .. && $(RM) ijb/a.out ijb/core ijb/*.@OBJEXT@ && tar --exclude "ijb/CVS" -cvzf ../JunkbusterNG-distribution-$(VERSION).tar.gz ijb/
+       chmod a+r ../../JunkbusterNG-distribution-$(VERSION).tar.gz
        @$(ECHO) Tarball with binary created.
 
 #############################################################################
@@ -701,9 +704,9 @@ tags: $(SRCS) $(HDRS)
        etags $(SRCS) $(HDRS)
 
 tarball-src: clobber
-       $(LN) -s current ../ijb-$(VERSION)-$(CODE_STATUS)
-       $(TAR) -C.. -cvhzf ijb-$(VERSION)-$(CODE_STATUS)-src.tar.gz ijb-$(VERSION)-$(CODE_STATUS)
-       $(RM) ../ijb-$(VERSION)-$(CODE_STATUS)
+       $(LN) -s current ../JunkbusterNG-$(VERSION)-$(CODE_STATUS)
+       $(TAR) -C.. -cvhzf JunkbusterNG-$(VERSION)-$(CODE_STATUS)-src.tar.gz JunkbusterNG-$(VERSION)-$(CODE_STATUS)
+       $(RM) ../JunkbusterNG-$(VERSION)-$(CODE_STATUS)
 
 install: all
        #
@@ -720,7 +723,7 @@ install: all
        $(INSTALL) config ijb.action re_filterfile trust $(DEST)
        # FIXME $(ECHO) junkbuster.logrotate junkbuster.monthly junkbuster.weekly
        # FIXME: Need new manual! $(GZIP_PROG) -c junkbuster.1 > $(MAN_DEST)/junkbuster.1.gz
-       $(INSTALL) junkbuster.init /etc/init.d/junkbuster
+       $(INSTALL) junkbusterng.init /etc/init.d/junkbusterng
 
 
 #############################################################################
similarity index 80%
rename from junkbuster-rh.spec
rename to junkbusterng-rh.spec
index 9be7621..7417ffc 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: junkbuster-rh.spec,v 1.42 2002/03/12 13:41:18 sarantis Exp $
+# $Id: junkbuster-rh.spec,v 1.43 2002/03/21 16:04:10 hal9 Exp $
 #
 # Written by and Copyright (C) 2001 the SourceForge
 # IJBSWA team.  http://ijbswa.sourceforge.net
 #
 
 # Defines should happen in the begining of the file
-%define ijbconf %{_sysconfdir}/%{name}
+%define oldname junkbuster
+%define jbngconf %{_sysconfdir}/%{oldname}
 
-Summary: The Internet Junkbuster
+Summary: JunkbusterNG (The Internet Junkbuster NextGeneration)
 Vendor: http://ijbswa.sourceforge.net
-Name: junkbuster
-Version: 2.9.11
-Release: 3
+Name: junkbusterng
+Version: 2.9.13
+Release: 1
 Source0: http://www.waldherr.org/%{name}/ijbswa-%{version}.tar.gz
 License: GPL
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 Group: Networking/Utilities
 URL: http://ijbswa.sourceforge.net/
-Obsoletes: junkbuster-raw junkbuster-blank
+Obsoletes: junkbuster-raw junkbuster-blank junkbuster
 # Prereq: /usr/sbin/useradd , /sbin/chkconfig , /sbin/service 
 Prereq: shadow-utils, chkconfig, initscripts, sh-utils
 BuildRequires: perl gzip sed docbook-utils libtool
-Conflicts: junkbuster-raw junkbuster-blank
+Conflicts: junkbuster-raw junkbuster-blank junkbuster
 
 %description
-Internet Junkbuster is a web proxy with advanced filtering
+JunkbusterNG is a web proxy with advanced filtering
 capabilities for protecting privacy, filtering web page content,
 managing cookies, controlling access, and removing ads, banners,
-pop-ups and other obnoxious Internet Junk. Junkbuster has a very
+pop-ups and other obnoxious Internet Junk. JunkbusterNG has a very
 flexible configuration and can be customized to suit individual needs
-and tastes. Internet Junkbuster has application for both stand-alone
+and tastes. JunkbusterNG has application for both stand-alone
 systems and multi-user networks.
 
 %prep
@@ -72,7 +73,7 @@ make redhat-dok
 mkdir -p %{buildroot}%{_sbindir} \
          %{buildroot}%{_mandir}/man8 \
          %{buildroot}%{_localstatedir}/log/%{name} \
-         %{buildroot}%{ijbconf}/templates \
+         %{buildroot}%{jbngconf}/templates \
          %{buildroot}%{_sysconfdir}/logrotate.d \
          %{buildroot}%{_sysconfdir}/rc.d/init.d 
 
@@ -82,17 +83,17 @@ mkdir -p %{buildroot}%{_sbindir} \
 ## Gziping the documentation files is not recomended - morcego
 #gzip README AUTHORS ChangeLog %{name}.1 || /bin/true
 
-install -s -m 744 %{name} %{buildroot}%{_sbindir}/%{name}
+install -s -m 744 jbng %{buildroot}%{_sbindir}/jbng
 
 ## We need to change the man section internaly on the manpage
 ## -- morcego (sugestion by Hal Burgiss)
 #cp -f %{name}.1 %{buildroot}%{_mandir}/man8/%{name}.8
-sed -e 's@^.TH JUNKBUSTER 1@.TH JUNKBUSTER 8@g' %{name}.1 > %{buildroot}%{_mandir}/man8/%{name}.8
-cp -f *.action %{buildroot}%{ijbconf}/
-cp -f re_filterfile %{buildroot}%{ijbconf}/re_filterfile
-cp -f trust %{buildroot}%{ijbconf}/trust
-cp -f templates/*  %{buildroot}%{ijbconf}/templates/
-cp -f %{name}.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
+sed -e 's@^.TH JUNKBUSTER 1@.TH JUNKBUSTER 8@g' %{oldname}.1 > %{buildroot}%{_mandir}/man8/%{oldname}.8
+cp -f *.action %{buildroot}%{jbngconf}/
+cp -f re_filterfile %{buildroot}%{jbngconf}/re_filterfile
+cp -f trust %{buildroot}%{jbngconf}/trust
+cp -f templates/*  %{buildroot}%{jbngconf}/templates/
+cp -f %{oldname}.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{oldname}
 install -m 755 %{name}.init %{buildroot}%{_sysconfdir}/rc.d/init.d/%{name}
 install -m 711 -d %{buildroot}%{_localstatedir}/log/%{name}
 
@@ -101,7 +102,7 @@ install -m 711 -d %{buildroot}%{_localstatedir}/log/%{name}
 ## Changing the sed paramter delimiter to @, so we don't have to
 ## escape the slashes
 cat config | \
-    sed 's@^confdir.*@confdir %{_sysconfdir}/%{name}@g' | \
+    sed 's@^confdir.*@confdir %{jbngconf}@g' | \
 #    sed 's/^permissionsfile.*/permissionsfile \/etc\/%{name}\/permissionsfile/g' | \
 #    sed 's/^re_filterfile.*/re_filterfile \/etc\/%{name}\/re_filterfile/g' | \
 #    sed 's/^logfile.*/logfile \%{_localstatedir}\/log\/%{name}\/logfile/g' | \
@@ -109,9 +110,9 @@ cat config | \
 #    sed 's/^forward.*/forward \/etc\/%{name}\/forward/g' | \
 #    sed 's/^aclfile.*/aclfile \/etc\/%{name}\/aclfile/g' > \
     sed 's@^logdir.*@logdir %{_localstatedir}/log/%{name}@g' > \
-    %{buildroot}%{ijbconf}/config
+    %{buildroot}%{jbngconf}/config
 perl -pe 's/{-no-cookies}/{-no-cookies}\n\.redhat.com/' ijb.action >\
-    %{buildroot}%{ijbconf}/ijb.action
+    %{buildroot}%{jbngconf}/ijb.action
 
 ## Macros are expanded even on commentaries. So, we have to use %%
 ## -- morcego
@@ -135,12 +136,14 @@ fi
 
 %post
 # for upgrade from 2.0.x
+[ -f %{_localstatedir}/log/%{oldname}/logfile ] &&\
+ mv -f %{_localstatedir}/log/%{oldname}/logfile %{_localstatedir}/log/%{name}/logfile || /bin/true
 [ -f %{_localstatedir}/log/%{name}/%{name} ] &&\
  mv -f %{_localstatedir}/log/%{name}/%{name} %{_localstatedir}/log/%{name}/logfile || /bin/true
 chown -R %{name}:%{name} %{_localstatedir}/log/%{name} 2>/dev/null
 chown -R %{name}:%{name} /etc/%{name} 2>/dev/null
 if [ "$1" = "1" ]; then
-     /sbin/chkconfig --add %{name}
+#     /sbin/chkconfig --add %{name}
        /sbin/service %{name} condrestart > /dev/null 2>&1
 fi
 # 01/09/02 HB, getting rid of any user=junkbust
@@ -148,9 +151,11 @@ fi
 id junkbust > /dev/null 2>&1 && /usr/sbin/userdel junkbust || /bin/true
 
 %preun
+/sbin/service %{oldname} stop > /dev/null 2>&1 ||:
+/sbin/chkconfig --del %{oldname}
+
 if [ "$1" = "0" ]; then
        /sbin/service %{name} stop > /dev/null 2>&1 ||:
-       /sbin/chkconfig --del %{name}
 fi
 
 %postun
@@ -166,62 +171,91 @@ id junkbuster > /dev/null 2>&1 && /usr/sbin/userdel junkbuster || /bin/true
 %files
 %defattr(0644,root,root,0755)
 %doc README AUTHORS ChangeLog
-# Where are the webserver/{developer,user}-manual files ?
 %doc doc/text/developer-manual.txt doc/text/user-manual.txt
 %doc doc/webserver/developer-manual
 %doc doc/webserver/user-manual
 %doc doc/webserver/ijb_docs.css
 #%doc %{name}.weekly %{name}.monthly AUTHORS
 
-%dir %{ijbconf}
-%dir %{ijbconf}/templates
+%dir %{jbngconf}
+%dir %{jbngconf}/templates
 %attr(0744,junkbuster,junkbuster) %dir %{_localstatedir}/log/%{name}
 
-%attr(0744,junkbuster,junkbuster)%{_sbindir}/%{name}
+%attr(0744,junkbuster,junkbuster)%{_sbindir}/jbng
 
 # We should not use wildchars here. This could mask missing files problems
 # -- morcego
-%config %{ijbconf}/config
-%config %{ijbconf}/ijb-advanced.action
-%config %{ijbconf}/ijb-basic.action
-%config %{ijbconf}/ijb-intermediate.action
-%config %{ijbconf}/ijb.action
-%config %{ijbconf}/re_filterfile
-%config %{ijbconf}/trust
-
-%config %{ijbconf}/templates/blocked
-%config %{ijbconf}/templates/blocked-compact
-%config %{ijbconf}/templates/cgi-error-404
-%config %{ijbconf}/templates/cgi-error-bad-param
-%config %{ijbconf}/templates/cgi-error-disabled
-%config %{ijbconf}/templates/cgi-error-file
-%config %{ijbconf}/templates/cgi-error-modified
-%config %{ijbconf}/templates/cgi-error-parse
-%config %{ijbconf}/templates/connect-failed
-%config %{ijbconf}/templates/default
-%config %{ijbconf}/templates/edit-actions-add-url-form
-%config %{ijbconf}/templates/edit-actions-for-url
-%config %{ijbconf}/templates/edit-actions-list
-%config %{ijbconf}/templates/edit-actions-list-section
-%config %{ijbconf}/templates/edit-actions-list-url
-%config %{ijbconf}/templates/edit-actions-remove-url-form
-%config %{ijbconf}/templates/edit-actions-url-form
-%config %{ijbconf}/templates/no-such-domain
-%config %{ijbconf}/templates/show-request
-%config %{ijbconf}/templates/show-status
-%config %{ijbconf}/templates/show-status-file
-%config %{ijbconf}/templates/show-url-info
-%config %{ijbconf}/templates/show-version
-%config %{ijbconf}/templates/toggle
-%config %{ijbconf}/templates/toggle-mini
-%config %{ijbconf}/templates/untrusted
-
-%config %{_sysconfdir}/logrotate.d/%{name}
+%config %{jbngconf}/config
+%config %{jbngconf}/ijb-advanced.action
+%config %{jbngconf}/ijb-basic.action
+%config %{jbngconf}/ijb-intermediate.action
+%config %{jbngconf}/ijb.action
+%config %{jbngconf}/re_filterfile
+%config %{jbngconf}/trust
+
+%config %{jbngconf}/templates/blocked
+%config %{jbngconf}/templates/blocked-compact
+%config %{jbngconf}/templates/cgi-error-404
+%config %{jbngconf}/templates/cgi-error-bad-param
+%config %{jbngconf}/templates/cgi-error-disabled
+%config %{jbngconf}/templates/cgi-error-file
+%config %{jbngconf}/templates/cgi-error-modified
+%config %{jbngconf}/templates/cgi-error-parse
+%config %{jbngconf}/templates/connect-failed
+%config %{jbngconf}/templates/default
+%config %{jbngconf}/templates/edit-actions-add-url-form
+%config %{jbngconf}/templates/edit-actions-for-url
+%config %{jbngconf}/templates/edit-actions-list
+%config %{jbngconf}/templates/edit-actions-list-section
+%config %{jbngconf}/templates/edit-actions-list-url
+%config %{jbngconf}/templates/edit-actions-remove-url-form
+%config %{jbngconf}/templates/edit-actions-url-form
+%config %{jbngconf}/templates/no-such-domain
+%config %{jbngconf}/templates/show-request
+%config %{jbngconf}/templates/show-status
+%config %{jbngconf}/templates/show-status-file
+%config %{jbngconf}/templates/show-url-info
+%config %{jbngconf}/templates/show-version
+%config %{jbngconf}/templates/toggle
+%config %{jbngconf}/templates/toggle-mini
+%config %{jbngconf}/templates/untrusted
+
+%config %{_sysconfdir}/logrotate.d/%{oldname}
 %config %attr(0744,root,root) %{_sysconfdir}/rc.d/init.d/%{name}
+%config(missingok) %attr(-,root,root) %{_sysconfdir}/rc.d/rc0.d/K09%{name}
+%config(missingok) %attr(-,root,root) %{_sysconfdir}/rc.d/rc1.d/K09%{name}
+%config(missingok) %attr(-,root,root) %{_sysconfdir}/rc.d/rc2.d/S84%{name}
+%config(missingok) %attr(-,root,root) %{_sysconfdir}/rc.d/rc3.d/S84%{name}
+%config(missingok) %attr(-,root,root) %{_sysconfdir}/rc.d/rc4.d/S84%{name}
+%config(missingok) %attr(-,root,root) %{_sysconfdir}/rc.d/rc5.d/S84%{name}
+%config(missingok) %attr(-,root,root) %{_sysconfdir}/rc.d/rc6.d/S84%{name}
 
-%{_mandir}/man8/%{name}.8*
+%{_mandir}/man8/%{oldname}.8*
 
 %changelog
+* Fri Mar 22 2002 Rodrigo Barbosa <rodrigob@tisbrasil.com.br>
++ junkbusterng-2.9.13-1
+- References to the expression ijb where changed where possible
+- New package name: junkbusterng (all in lower case, acording to
+  the LSB recomendation)
+- Version changed to: 2.9.13
+- Release: 1
+- Added: junkbuster to obsoletes and conflicts (Not sure this is
+  right. If it obsoletes, why conflict ? Have to check it later)
+- Summary changed: Stefan, please check and aprove it
+- Changes description to use the new name
+- Sed string was NOT changed. Have to wait to the manpage to
+  change first
+- Keeping the user junkbuster for now. It will require some aditional
+  changes on the script (scheduled for the next specfile release)
+- Added post entry to move the old logfile to the new log directory
+- Removing "chkconfig --add" entry (not good to have it automaticaly
+  added to the startup list).
+- Added preun section to stop the service with the old name, as well
+  as remove it from the startup list
+- Removed the chkconfig --del entry from the conditional block on
+  the preun scriptlet (now handled on the %files section)
+
 * Thu Mar 21 2002 Hal Burgiss <hal@foobox.net>
 - added ijb_docs.css to docs.
 
@@ -438,6 +472,9 @@ id junkbuster > /dev/null 2>&1 && /usr/sbin/userdel junkbuster || /bin/true
        additional "-r @" flag.
 
 # $Log: junkbuster-rh.spec,v $
+# Revision 1.43  2002/03/21 16:04:10  hal9
+# added ijb_docs.css to %doc
+#
 # Revision 1.42  2002/03/12 13:41:18  sarantis
 # remove hard-coded "ijbswa" string in build phase
 #
similarity index 97%
rename from junkbuster.init
rename to junkbusterng.init
index f5f045e..28ace8b 100644 (file)
@@ -33,6 +33,9 @@
 # 
 #  Revisions   :
 #     $Log: junkbuster.init,v $
+#     Revision 1.15  2002/03/09 15:05:58  swa
+#     wrong user.group
+#
 #     Revision 1.14  2002/03/06 06:13:40  hal9
 #     Adapted for Andreas' changes for --user and --pidfile.
 #
 #  Check that networking is up.
 [ ${NETWORKING} = "no" ] && exit 0
 
-JB_PRG="junkbuster"
+JB_OPRG="junkbuster"
+JB_PRG="jbng"
 JB_BIN="/usr/sbin/$JB_PRG"
-JB_CONF="/etc/$JB_PRG/config"
+JB_CONF="/etc/$JB_OPRG/config"
 JB_USER="junkbuster"
 JB_PID=/var/run/$JB_PRG.pid
 JB_LOCK=/var/lock/subsys/$JB_PRG