Skip to content

Commit

Permalink
Remove xca_db_stat application
Browse files Browse the repository at this point in the history
  • Loading branch information
chris2511 committed Mar 5, 2018
1 parent e1b982a commit 84f2504
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 178 deletions.
1 change: 0 additions & 1 deletion INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ setup.exe: W32 installer
snapshot : Creates a current snapshot from the local git repository
xca.app : Creates the MacOSX xca.app
xca.dmg : Creates the MacOSX Disk image
xca_db_stat: Creates the database analyzer

Installing:
------------
Expand Down
21 changes: 6 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ OSSLSIGN_OPT=sign -pkcs12 "$(HOME)"/Christian_Hohnstaedt.p12 -askpass \
-n "XCA $(VERSION)" -i https://hohnstaedt.de/xca \
-t http://timestamp.comodoca.com -h sha2 -verbose

all: xca_db_stat$(SUFFIX)
ifeq ($(SUFFIX), .exe)
all: setup$(SUFFIX)
export CFLAGS_XCA_DB_STAT=-mconsole
Expand Down Expand Up @@ -79,11 +78,6 @@ headers: do.ui commithash.h
$(MAKE) -C $* -f $(TOPDIR)/$*/Makefile \
VPATH=$(TOPDIR)/$*

xca_db_stat$(SUFFIX): lib/.build-stamp
$(MAKE) -C lib -f $(TOPDIR)/lib/Makefile \
VPATH=$(TOPDIR)/lib $@
cp lib/$@ $@

$(INSTTARGET): install.%: %/.build-stamp
mkdir -p $*
$(MAKE) -C $* -f $(TOPDIR)/$*/Makefile \
Expand All @@ -99,9 +93,9 @@ clean:
-o -name ".build-stamp" \
-o -name ".depend" \
-o -name "moc_*.cpp" | xargs rm -f
rm -f ui/ui_*.h lang/xca_*.qm doc/*.html doc/xca.1.gz doc/xca_db_stat.1.gz img/imgres.cpp
rm -f ui/ui_*.h lang/xca_*.qm doc/*.html doc/xca.1.gz img/imgres.cpp
rm -f lang/*.xml lang/.build-stamp misc/dn.txt misc/eku.txt misc/oids.txt
rm -f xca$(SUFFIX) setup_xca*.exe xca_db_stat$(SUFFIX) lib/xca_db_stat$(SUFFIX) *.dmg
rm -f xca$(SUFFIX) setup_xca*.exe *.dmg
rm -rf xca-$(VERSION)*

distclean: clean
Expand All @@ -126,16 +120,15 @@ snapshot:
git archive --format=tar --prefix=xca-$${HASH}/ HEAD | \
gzip -9 > xca-$${HASH}.tar.gz

install: xca$(SUFFIX) xca_db_stat$(SUFFIX) $(INSTTARGET)
install: xca$(SUFFIX) $(INSTTARGET)
install -m 755 -d $(destdir)$(bindir)
install -m 755 xca $(destdir)$(bindir)
install -m 755 xca_db_stat $(destdir)$(bindir)
$(STRIP) $(destdir)$(bindir)/xca

setup.exe: setup_xca-$(VERSION).exe
setup_xca-$(VERSION).exe: xca$(SUFFIX) xca_db_stat$(SUFFIX) do.doc do.lang do.misc
setup_xca-$(VERSION).exe: xca$(SUFFIX) do.doc do.lang do.misc
setup_xca-$(VERSION).exe: misc/xca.nsi
for binary in xca$(SUFFIX) xca_db_stat$(SUFFIX); do \
for binary in xca$(SUFFIX); do \
$(STRIP) xca$(SUFFIX); \
if test -n "$(OSSLSIGN)"; then \
$(OSSLSIGN) $(OSSLSIGN_OPT) -in $${binary} -out $${binary}.signed && \
Expand All @@ -150,17 +143,15 @@ setup_xca-$(VERSION).exe: misc/xca.nsi
fi


$(DMGSTAGE): xca$(SUFFIX) xca_db_stat$(SUFFIX)
$(DMGSTAGE): xca$(SUFFIX)
rm -rf $(DMGSTAGE)
mkdir -p $(DMGSTAGE)/xca.app/Contents/MacOS
mkdir -p $(DMGSTAGE)/xca.app/Contents/Resources
mkdir -p $(DMGSTAGE)/manual
ln -s /Applications $(DMGSTAGE)
install -m 644 $(TOPDIR)/COPYRIGHT $(DMGSTAGE)/COPYRIGHT.txt
install -m 755 xca $(DMGSTAGE)/xca.app/Contents/MacOS
install -m 755 xca_db_stat $(DMGSTAGE)/xca.app/Contents/MacOS
$(STRIP) $(DMGSTAGE)/xca.app/Contents/MacOS/xca
$(STRIP) $(DMGSTAGE)/xca.app/Contents/MacOS/xca_db_stat
$(MAKE) $(APPTARGET)
cp -r $(DMGSTAGE)/xca.app/Contents/Resources/*.html $(DMGSTAGE)/manual
ln -s xca.html $(DMGSTAGE)/manual/index.html
Expand Down
4 changes: 2 additions & 2 deletions doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ TOPDIR=..
BUILD=..
endif

DELFILES=xca*.html xca.1.gz xca_db_stat.1.gz
DELFILES=xca*.html xca.1.gz

doc: xca.1.gz xca_db_stat.1.gz xca.html changelog.html
doc: xca.1.gz xca.html changelog.html
include $(TOPDIR)/Rules.mak

%.1.gz: %.1
Expand Down
41 changes: 0 additions & 41 deletions doc/xca_db_stat.1

This file was deleted.

4 changes: 0 additions & 4 deletions lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,3 @@ OBJS=$(patsubst %, %.o, $(NAMES)) $(patsubst %, moc_%.o, $(MOCNAMES))

include $(TOPDIR)/Rules.mak
sinclude .depend

xca_db_stat$(SUFFIX): xca_db_stat.o db.o db.h
@$(PRINT) " LINK $@"
$(CC) $(CPPFLAGS) $(LDFLAGS) $(CFLAGS) $(CFLAGS_XCA_DB_STAT) xca_db_stat.o db.o $(LIBS) -g -o $@
6 changes: 3 additions & 3 deletions lib/x509v3ext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -860,11 +860,11 @@ static bool nameConstraint(STACK_OF(GENERAL_SUBTREE) *trees,
{
return false;
}
fprintf(stderr, "%s: %d '%s'\n", __func__, i, CCHAR(one));
qDebug("%s: %d '%s'\n", __func__, i, CCHAR(one));
sl << prefix + ";" + one;
}
*single = vlist2Section(sl, tag+prefix, sect);
fprintf(stderr, "Single: '%s'\n", CCHAR(*single));
qDebug("Single: '%s'\n", CCHAR(*single));
return true;
}

Expand Down Expand Up @@ -892,7 +892,7 @@ bool x509v3ext::parse_nameConstraints(QString *, QString *adv) const

if (adv && retval &&permEx.size() > 0) {
ret = permEx.join(", ");
fprintf(stderr, "%s %d '%s'\n", __func__, retval, CCHAR(ret));
qDebug("%s %d '%s'\n", __func__, retval, CCHAR(ret));
*adv = QString("%1=%2\n").arg(tag).
arg(parse_critical() +ret) + *adv + sect;
}
Expand Down
108 changes: 0 additions & 108 deletions lib/xca_db_stat.cpp

This file was deleted.

6 changes: 2 additions & 4 deletions misc/xca.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ Section "xca (required)" SecMain
SetOutPath $INSTDIR
; Put files there
File "xca.exe"
File "xca_db_stat.exe"
File "misc\dn.txt"
File "misc\eku.txt"
File "misc\oids.txt"
Expand All @@ -88,16 +87,16 @@ Section "xca (required)" SecMain
File "${INSTALLDIR}\bin\libcrypto-1_1.dll"


; delete unneeded engine
; delete unneeded files when updating
Delete "$INSTDIR\libp11-1.dll"
Delete "$INSTDIR\engine_pkcs11.dll"
Delete "$INSTDIR\libeay32.dll"
Delete "$INSTDIR\QtGui4.dll"
Delete "$INSTDIR\QtCore4.dll"
Delete "$INSTDIR\mingwm10.dll"
Delete "$INSTDIR\aia.txt"
Delete "$INSTDIR\xca_db_stat.exe"

; remove old images
; Write the installation path into the registry
WriteRegStr HKLM SOFTWARE\xca "Install_Dir" "$INSTDIR"

Expand Down Expand Up @@ -209,7 +208,6 @@ Section "Uninstall"
DeleteRegKey HKCU "SOFTWARE\xca"
; remove files
Delete $INSTDIR\xca.exe
Delete $INSTDIR\xca_db_stat.exe
Delete $INSTDIR\key.ico
Delete $INSTDIR\key.xpm
Delete $INSTDIR\*.dll
Expand Down

0 comments on commit 84f2504

Please sign in to comment.