Permalink
Browse files

First BETA release for FreeBSD

  * Some ifdefs for FreeBSD specifics in the linux code
  * Refactor ftime to gettimeofday (time.h vs timeb.h) this should be available on any OS since 2000

Refactoring src/os/linux to src/os/unix is still pending
  • Loading branch information...
Sp1l authored and ronys committed Oct 1, 2015
1 parent 4e19133 commit c140da724ed3fc28a7b0cb23ba03ea734e8dfa9c
@@ -42,6 +42,7 @@ export CFLAGS+=-I/usr/local/include -DNO_YUBI
export CC=clang
export CXX=clang++
export CPP=clang++
export PLATFORM=FreeBSD

all: I18N unicodedebug unicoderelease

@@ -1,4 +1,4 @@
#!/usr/local/bin/env python
#!/usr/bin/env python
# -*- coding: utf8 -*-

__version__ = '$Id$'
@@ -86,7 +86,7 @@ sub usage {
if (!-e $OUTFILE) {
move($TMPFILE, $OUTFILE) || die "Couldn't move $TMPFILE to $OUTFILE: $!\n";
} else {
`/usr/local/bin/diff -q $TMPFILE $OUTFILE > /dev/null`;
`/usr/bin/diff -q $TMPFILE $OUTFILE > /dev/null`;
if ($VERSTRING ne "local" && $? != 0) {
unlink $OUTFILE || die "Couldn't remove old $OUTFILE\n";
move($TMPFILE, $OUTFILE) || die "Couldn't move $TMPFILE to $OUTFILE: $!\n";
@@ -1,4 +1,4 @@
#!/usr/local/bin/perl
#!/usr/bin/env perl

use Crypt::Blowfish;
use Digest::SHA1;
@@ -1,4 +1,4 @@
#!/usr/local/bin/perl
#!/usr/bin/env perl

# Updated April 5, 2005 by Jason Diamond.

@@ -1,4 +1,4 @@
#!/usr/local/bin/perl -w
#!/usr/bin/env perl -w
#
# Copyright (c) 2003-2015 Rony Shapiro <ronys@users.sourceforge.net>.
# All rights reserved. Use of the code is allowed under the
@@ -0,0 +1,23 @@
= Introduction =
The FreeBSD port of PasswordSafe is currently in BETA.
This means that (1) you should take care to keep copies of the
database to protect against possible loss of data due to bugs, and (2)
there are several unimplemented features. Nonetheless, we feel that
this is good enough to release as an early beta to gather feedback
from a wider audience.

= Supported =
This has only been tested on FreeBSD 10.2 amd64 with wx 3.0 so far.
== Known not working ==
* The help system
* Debug builds

= Installation =
1. Install x11-toolkits/wxgtk30 and devel/gmake-lite
2. Run `NO_YUBI=1 gmake release
3. Your `pwsafe` binary is in `src/ui/wxWidgets/GCCUnicodeRelease`
4. At start you get a warning about the help system

= Reporting bugs =
Please submit bugs via https://github.com/pwsafe/pwsafe
Make sure you include output of `uname -a`
@@ -23,8 +23,8 @@
#include "os/dir.h"

#include <stdio.h>
#include <sys/timeb.h>
#include <time.h>
#include <sys/time.h>
#include <sstream>
#include <iomanip>
#include <errno.h>
@@ -432,19 +432,19 @@ void PWSUtil::GetTimeStamp(stringT &sTimeStamp, const bool bShort)
ptimebuffer = new _timeb;
_ftime_s(ptimebuffer);
#else
struct timeb *ptimebuffer;
ptimebuffer = new timeb;
ftime(ptimebuffer);
struct timeval *ptimebuffer;
ptimebuffer = new timeval;
gettimeofday(ptimebuffer, NULL);
#endif
StringX cmys_now = ConvertToDateTimeString(ptimebuffer->time, TMC_EXPORT_IMPORT);
StringX cmys_now = ConvertToDateTimeString(ptimebuffer->tv_sec, TMC_EXPORT_IMPORT);

if (bShort) {
sTimeStamp = cmys_now.c_str();
} else {
ostringstreamT *p_os;
p_os = new ostringstreamT;
*p_os << cmys_now << TCHAR('.') << setw(3) << setfill(TCHAR('0'))
<< static_cast<unsigned int>(ptimebuffer->millitm);
<< static_cast<unsigned int>(ptimebuffer->tv_usec);

sTimeStamp = p_os->str();
delete p_os;

This file was deleted.

Oops, something went wrong.

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit c140da7

Please sign in to comment.